all repos — fluxbox @ e512c1becd6fc267e64460f0883a16b4975da19e

custom fork of the fluxbox windowmanager

minor cosmetic
Mathias Gumz akira at fluxbox dot org
commit

e512c1becd6fc267e64460f0883a16b4975da19e

parent

2f279e96b16b40ac8f1aa0b9850dd13f7ec4d0ae

2 files changed, 6 insertions(+), 7 deletions(-)

jump to
M src/ClockTool.ccsrc/ClockTool.cc

@@ -72,9 +72,10 @@ uint64_t calcNextTimeout(const std::string& fmt_string) {

if (showSeconds(fmt_string)) { // microseconds till next full second return FbTk::FbTime::remainingNext(FbTk::FbTime::IN_SECONDS); - } else { // microseconds until next full minute - return FbTk::FbTime::remainingNext(60L * FbTk::FbTime::IN_SECONDS); - } + } + + // microseconds until next full minute + return FbTk::FbTime::remainingNext(60L * FbTk::FbTime::IN_SECONDS); }
M src/FbTk/Timer.ccsrc/FbTk/Timer.cc

@@ -170,8 +170,7 @@ bool overdue = false;

uint64_t now = FbTime::now(); uint64_t end_time; - // see, if the first timer in the - // list is overdue + // search for overdue timers if (!s_timerlist.empty()) { Timer* timer = *s_timerlist.begin();

@@ -200,8 +199,7 @@ now = FbTime::now();

for (it = s_timerlist.begin(); it != s_timerlist.end(); ) { // t->fireTimeout() might add timers to the list - // this invalidates 'it'. thus we store the current - // item here + // this invalidates 'it'. thus we store the current timer Timer* t = *it; if (now < t->getEndTime()) { break;