summaryrefslogtreecommitdiff
path: root/community/qps/version-patch.diff
diff options
context:
space:
mode:
Diffstat (limited to 'community/qps/version-patch.diff')
-rw-r--r--community/qps/version-patch.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/qps/version-patch.diff b/community/qps/version-patch.diff
new file mode 100644
index 000000000..bfddd2a0a
--- /dev/null
+++ b/community/qps/version-patch.diff
@@ -0,0 +1,14 @@
+--- proc_linux.cpp 2011-07-17 08:03:52.000000000 -0400
++++ proc_linux.cpp.new 2011-08-09 11:09:47.278589772 -0400
+@@ -1962,7 +1962,10 @@
+ int result;
+
+ result = sscanf(p, "%d.%d.%d", &major, &minor, &patch);
+- if(result < 3) {
++ if(result == 2) {
++ patch = 0;
++ }
++ else if(result < 3) {
+ fprintf(stderr, "Qps: can't determine version, read %s \n", p);
+ fprintf(stderr, "please report this bug.\n");
+ exit(1);