diff options
-rw-r--r-- | src/FbTk/FbTime.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/FbTime.hh b/src/FbTk/FbTime.hh index 42ee912..5726fb7 100644 --- a/src/FbTk/FbTime.hh +++ b/src/FbTk/FbTime.hh | |||
@@ -47,7 +47,7 @@ namespace FbTime { | |||
47 | // calculates the remaining microseconds from 'now' up to the | 47 | // calculates the remaining microseconds from 'now' up to the |
48 | // next full 'unit' | 48 | // next full 'unit' |
49 | inline uint64_t remainingNext(uint64_t now, uint64_t unit) { | 49 | inline uint64_t remainingNext(uint64_t now, uint64_t unit) { |
50 | return (unit - (now % unit) - 1); | 50 | return (unit - (now % unit)); |
51 | } | 51 | } |
52 | 52 | ||
53 | } // namespace FbTime | 53 | } // namespace FbTime |