mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
moviebrowser.cpp: silence comparing floating point warning
Origin commit data
------------------
Branch: ni/coolstream
Commit: 632ecc3b1e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-03-19 (Thu, 19 Mar 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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