From e512c1becd6fc267e64460f0883a16b4975da19e Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Fri, 14 Sep 2012 08:52:13 +0200 Subject: minor cosmetic --- src/ClockTool.cc | 7 ++++--- src/FbTk/Timer.cc | 6 ++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/ClockTool.cc b/src/ClockTool.cc index 1fcdb53..3591f4f 100644 --- a/src/ClockTool.cc +++ b/src/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); } diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc index b9d089f..f63ea38 100644 --- a/src/FbTk/Timer.cc +++ b/src/FbTk/Timer.cc @@ -170,8 +170,7 @@ void Timer::updateTimers(int fd) { 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 @@ void Timer::updateTimers(int fd) { 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; -- cgit v0.11.2