summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-01-29 01:50:24 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2017-07-13 12:10:23 +0200
commit503eba23c9a199583eddee9e169a4fddbecf416f (patch)
tree3f164baad45efd799a6ed0559dfb5278ef96c692 /vcl/inc
parent917be98e3f277960635ac66bcea510c2454c80d6 (diff)
SVP correctly handle sleep time
Don't add 500 usec for 0ms sleeps and always round up the sleep time so we won't sleep too short. Change-Id: I28dda435de44031c050b6edbfae1e9d392465d24
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/unx/salunxtime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/unx/salunxtime.h b/vcl/inc/unx/salunxtime.h
index e9b4b81af7f6..1ed979e83e5b 100644
--- a/vcl/inc/unx/salunxtime.h
+++ b/vcl/inc/unx/salunxtime.h
@@ -59,7 +59,7 @@ inline timeval &operator -= ( timeval &t1, const timeval &t2 )
inline timeval &operator += ( timeval &t1, sal_uIntPtr t2 )
{
t1.tv_sec += t2 / 1000;
- t1.tv_usec += t2 ? (t2 % 1000) * 1000 : 500;
+ t1.tv_usec += (t2 % 1000) * 1000;
if( t1.tv_usec > 1000000 )
{
t1.tv_sec++;