diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-04-14 13:06:18 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-04-14 13:06:18 +0200 |
commit | 49ff42bef58c0cd1ac50f545641cc099af25992d (patch) | |
tree | 128eadbf213033ece16d597c556a81688c9f48d0 /src | |
parent | 70bf3f867123210f8b4771058f226d5842020398 (diff) | |
download | weechat-49ff42bef58c0cd1ac50f545641cc099af25992d.zip |
core: remove unnecessary condition in comparison of timeval structures
Ref: https://github.com/weechat/weechat-relay/pull/3
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-util.c | 6 |
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; } |