aboutsummaryrefslogtreecommitdiff
path: root/src/timer.c
diff options
context:
space:
mode:
authorsethdelliott <devnull@localhost>2010-07-07 21:54:24 +0000
committersethdelliott <devnull@localhost>2010-07-07 21:54:24 +0000
commitf1b3bd81f928b4f738eb41d4a6dbaa08f8cca695 (patch)
tree1966540b70df5a060322a128a31f66dba62f7449 /src/timer.c
parentb68ac00ee90cbd60830b8ea80158842014027935 (diff)
downloadiperf3-f1b3bd81f928b4f738eb41d4a6dbaa08f8cca695.tar.gz
Quite a bit of code restructuring.
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timer.c b/src/timer.c
index 6c3b758..2681825 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -28,10 +28,8 @@ timeval_diff(struct timeval * tv0, struct timeval * tv1)
int
timer_expired(struct timer * tp)
{
- /* for timer with zero time */
- if (tp->end.tv_sec == tp->begin.tv_sec && tp->end.tv_usec == tp->begin.tv_usec) {
+ if (tp == NULL)
return 0;
- }
struct timeval now;
int64_t end = 0, current = 0;