aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 4160b1678..5eaa88f4f 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -44,14 +44,6 @@ tv_udiff(struct timeval *start, struct timeval *end)
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_fn(LOG_NOTICE, "start is after end. Returning 0.");