summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-util.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/wee-util.c b/src/core/wee-util.c
index e776246f0..40b0545aa 100644
--- a/src/core/wee-util.c
+++ b/src/core/wee-util.c
@@ -259,12 +259,6 @@ util_timeval_diff (struct timeval *tv1, struct timeval *tv2)
diff_sec = tv2->tv_sec - tv1->tv_sec;
diff_usec = tv2->tv_usec - tv1->tv_usec;
- if (diff_usec < 0)
- {
- diff_usec += 1000000;
- diff_sec--;
- }
-
return (diff_sec * 1000000) + diff_usec;
}