all repos — fluxbox @ f3e82cae8372c4f4a757e1277a442b5e9056b44f

custom fork of the fluxbox windowmanager

allow a timeout of a full 'unit'

the -1 in the FbTk::FbTimer::remainingNext() function was pointless in the
first place anyway: reducing the timeout by just 1 microsecond improves
nothing (in this case). if the timer triggers exactly at a full unit (second)
then it's correct to wait for the full next unit.
Mathias Gumz akira at fluxbox dot org
commit

f3e82cae8372c4f4a757e1277a442b5e9056b44f

parent

6700eb354fee98492d1b17b927b76749242bf9b9

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/FbTk/FbTime.hhsrc/FbTk/FbTime.hh

@@ -47,7 +47,7 @@

// calculates the remaining microseconds from 'now' up to the // next full 'unit' inline uint64_t remainingNext(uint64_t now, uint64_t unit) { - return (unit - (now % unit) - 1); + return (unit - (now % unit)); } } // namespace FbTime