mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
moviebrowser.cpp: silence comparing floating point warning
This commit is contained in:
@@ -3366,7 +3366,7 @@ void CMovieBrowser::refreshYTMenu()
|
||||
yt_menue->addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_YT_CANCEL, true, NULL, ytcache_selector, "cancel_all"));
|
||||
yt_menue->addItem(GenericMenuSeparator);
|
||||
std::string progress;
|
||||
if (dlstart && dltotal && dlnow) {
|
||||
if (dlstart && (int64_t)dltotal && (int64_t)dlnow) {
|
||||
time_t done = time(NULL) - dlstart;
|
||||
time_t left = ((dltotal - dlnow) * done)/dlnow;
|
||||
progress = "(" + to_string(done) + "s/" + to_string(left) + "s)";
|
||||
|
Reference in New Issue
Block a user