[or-cvs] Apply algebra; remove a condition
Nick Mathewson
nickm at seul.org
Thu Apr 17 02:03:58 UTC 2003
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv24453/src/common
Modified Files:
util.c
Log Message:
Apply algebra; remove a condition
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- util.c 17 Apr 2003 01:59:41 -0000 1.3
+++ util.c 17 Apr 2003 02:03:55 -0000 1.4
@@ -30,10 +30,15 @@
log(LOG_NOTICE, "tv_udiff(): comparing times too far apart.");
return LONG_MAX;
}
+
+ /*
+ This is a no-op: "secdiff--" takes 1M from the final result,
+ and "end_usec+=100000L" puts it back.
if (end_usec < start->tv_usec) {
secdiff--;
end_usec += 1000000L;
}
+ */
udiff = secdiff*1000000L + (end_usec - start->tv_usec);
if(udiff < 0) {
log(LOG_NOTICE, "tv_udiff(): start is after end. Returning 0.");
More information about the tor-commits
mailing list