Remove unnecessary comparison.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28796 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-12-10 02:28:00 +00:00
parent eaed962ce9
commit 835e354694
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ ScreenSaverRunner::_Run()
int32 snoozeCount = 0;
int32 frame = 0;
bigtime_t lastTickTime = -1;
bigtime_t lastTickTime = 0;
bigtime_t tick = fSaver ? fSaver->TickSize() : kTickBase;
while (!fQuitting) {
@ -193,7 +193,7 @@ ScreenSaverRunner::_Run()
// will result in the screen saver not responding to deactivation
// for that length of time
snooze(kTickBase);
if (lastTickTime > 0 && system_time() - lastTickTime < tick)
if (system_time() - lastTickTime < tick)
continue;
else {
// re-evaluate the tick time after each successful wakeup -