![]() |
There is a bug in recvstats and xferfaxstats: If you invoke it with -since '10/31/00 23:55' then it does not show messages for 11/01/00. Compare "Total" in examples: ==================== # /usr/local/sbin/recvstats -since '10/31/00 23:55' Sender Pages Time Pg/min Errs TypRate TypData . . . . . ---------------------------------------------------------- Total 28 8:41 3.2 0 # /usr/local/sbin/recvstats -since '11/01/00 00:00' Sender Pages Time Pg/min Errs TypRate TypData . . . . . ---------------------------------------------------------- Total 69 25:00 2.8 0 ==================== Here is a patch: [---cut---] --- /usr/local/sbin/recvstats Mon Sep 25 19:04:18 2000 +++ ./recvstats Thu Nov 2 12:38:29 2000 @@ -166,7 +166,7 @@ else yday -= 70; yday = yday*365 + substr(s,4,2) - 1; - mon = substr(s,1,2) + 0; + mon = substr(s,1,2) - 1; for (i = 0; i < mon; i++) yday += daysInMonth[i]; return yday*FULLDAY + cvtTime(substr(s,10) ":00"); --- /usr/local/sbin/xferfaxstats Mon Sep 25 19:04:18 2000 +++ ./xferfaxstats Thu Nov 2 13:27:13 2000 @@ -192,7 +192,7 @@ else yday -= 70; yday = yday*365 + substr(s,4,2) - 1; - mon = substr(s,1,2) + 0; + mon = substr(s,1,2) - 1; for (i = 0; i < mon; i++) yday += daysInMonth[i]; return yday*FULLDAY + cvtTime(substr(s,10) ":00"); [---cut---] Can anybody to check it and put changes to cvs? ____________________ HylaFAX(tm) Users Mailing List _______________________ To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null