an ugly hack to argus_clients.c
Peter Van Epp
vanepp at sfu.ca
Mon Feb 13 23:53:16 EST 2006
As a start towards causing trouble err fixing a bug :-) here is a patch
to argus_clients.c to fix the "time" -s option key word. The any one of the
following three options should work:
time (print start and end times)
startime (print start time)
lasttime (print end time)
in practice only the last two do, time prints nothing except a start label
(which also needs to be fixed too, but later :-)). The following patch makes all
three work but may break something else and/or motivate Carter to make a
better fix :-) because there may be more paths in to ArgusPrintDate where
RaPrintStartTime and RaPrintLastTime control printing but don't appear to be
set anywhere but the .h file (where they are set to 0 to not print) under some
not obvious circumstance.
*** common/argus_client.c.orig Mon Feb 13 20:32:51 2006
--- common/argus_client.c Mon Feb 13 20:37:06 2006
***************
*** 69,74 ****
--- 69,78 ----
RaPrintDate = 0;
for (x = 0; x < MAX_PRINT_ALG_TYPES; x++) {
if (!strncmp (RaPrintKeyWords[x], soption, strlen(RaPrintKeyWords[x]))) {
+ if (x == 0) {
+ RaPrintStartTime = 1;
+ RaPrintLastTime = 1;
+ }
if (x < 3) RaPrintDate++;
switch (RaOptionOperation) {
case RA_ADD_OPTION:
Peter Van Epp / Operations and Technical Support
Simon Fraser University, Burnaby, B.C. Canada
More information about the argus
mailing list