mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
neutrino: avoid float for percent calculations
Origin commit data
------------------
Branch: ni/coolstream
Commit: fb6633b7aa
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-12-25 (Sun, 25 Dec 2011)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2193,7 +2193,7 @@ void CInfoViewer::showLcdPercentOver ()
|
||||
if (jetzt < info_CurrentNext.current_zeit.startzeit)
|
||||
runningPercent = 0;
|
||||
else
|
||||
runningPercent = MIN ((unsigned) ((float) (jetzt - info_CurrentNext.current_zeit.startzeit) / (float) info_CurrentNext.current_zeit.dauer * 100.), 100);
|
||||
runningPercent = MIN ((jetzt - info_CurrentNext.current_zeit.startzeit) * 100 / info_CurrentNext.current_zeit.dauer, 100);
|
||||
}
|
||||
CVFD::getInstance ()->showPercentOver (runningPercent);
|
||||
}
|
||||
|
Reference in New Issue
Block a user