]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 333] V34 update broke xferfaxstats and/or the actual logging mechanism
authorDarren Nickerson <darren.nickerson@ifax.com>
Fri, 9 Aug 2002 01:47:12 +0000 (01:47 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Fri, 9 Aug 2002 01:47:12 +0000 (01:47 +0000)
Patrice has supplied a fix for this inadvertent side effect of changing the
encoded parameters of a fax

util/xferfaxstats.sh.in

index afec7f819ea6569e12ab693f3487f2594944991e..2a131d7b4ca53d3854dfbf3eec693a6224967746 100644 (file)
@@ -356,12 +356,20 @@ function toLower(s)
 
 function getBR(params)
 {
-    return brNames[int(int(params) / 2) % 16];
+    if ((int(int(params) / 2097152) % 2) == 1) {
+        return brNames[int(int(params) / 8) % 16];
+    } else {
+        return brNames[int(int(params) / 2) % 8];
+    }
 }
 
 function getDF(params)
 {
-    return dfNames[int(int(params) / 512) % 4];
+    if ((int(int(params) / 2097152) % 2) == 1) {
+        return dfNames[int(int(params) / 16384) % 4];
+    } else {
+        return dfNames[int(int(params) / 512) % 4];
+    }
 }
 
 #