summaryrefslogtreecommitdiff
path: root/daemon/stats.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-12-28 05:27:06 +0000
committerCy Schubert <cy@FreeBSD.org>2019-12-28 05:27:06 +0000
commite2fe726866d062155f6b1aae749375475ef19191 (patch)
treefe6b00611d5c987d2c12c32063891ae19295ffeb /daemon/stats.c
parent366b94c4a9552acfb560d3234aea0955ebc1eb8e (diff)
downloadsrc-test2-e2fe726866d062155f6b1aae749375475ef19191.tar.gz
src-test2-e2fe726866d062155f6b1aae749375475ef19191.zip
Notes
Diffstat (limited to 'daemon/stats.c')
-rw-r--r--daemon/stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/stats.c b/daemon/stats.c
index 504b0efccc4a..a01fb6d342ca 100644
--- a/daemon/stats.c
+++ b/daemon/stats.c
@@ -77,7 +77,7 @@ stats_timeval_add(long long* d_sec, long long* d_usec, long long add_sec, long l
#ifndef S_SPLINT_S
(*d_sec) += add_sec;
(*d_usec) += add_usec;
- if((*d_usec) > 1000000) {
+ if((*d_usec) >= 1000000) {
(*d_usec) -= 1000000;
(*d_sec)++;
}