diff options
author | Ed Maste <emaste@freebsd.org> | 2014-04-29 18:09:44 +0000 |
---|---|---|
committer | Ed Maste <emaste@freebsd.org> | 2014-04-29 18:09:44 +0000 |
commit | 993fa0604deda01b22d254cc1237a69ccd6aa8fd (patch) | |
tree | b8d41fe292b988f1b8333527f3f4a74a5adddd28 | |
parent | 67077b3032bf51547f551878a75b05f317c50787 (diff) | |
download | bcm5719-llvm-993fa0604deda01b22d254cc1237a69ccd6aa8fd.tar.gz bcm5719-llvm-993fa0604deda01b22d254cc1237a69ccd6aa8fd.zip |
Fix interval recalculation in the event that usleep is interrupted
llvm-svn: 207566
-rw-r--r-- | lldb/test/expression_command/timeout/wait-a-while.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/expression_command/timeout/wait-a-while.c b/lldb/test/expression_command/timeout/wait-a-while.c index f3475fc3ff2..a233f8dedf3 100644 --- a/lldb/test/expression_command/timeout/wait-a-while.c +++ b/lldb/test/expression_command/timeout/wait-a-while.c @@ -21,7 +21,7 @@ wait_a_while (useconds_t interval) { struct timeval now; gettimeofday(&now, NULL); - interval = target - now.tv_sec * 1000000 + now.tv_usec; + interval = target - (now.tv_sec * 1000000 + now.tv_usec); } else break; |