Mercurial > minori
diff src/core/time.cpp @ 64:fe719c109dbc
*: update
1. add media tracking ability, and it displays info on the `now playing` page
2. the `now playing` page now actually shows something
3. renamed every page class to be more accurate to what it is
4. ...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 23:15:43 -0400 |
parents | 5c0397762b53 |
children |
line wrap: on
line diff
--- a/src/core/time.cpp Sun Oct 01 06:39:47 2023 -0400 +++ b/src/core/time.cpp Sun Oct 01 23:15:43 2023 -0400 @@ -44,15 +44,15 @@ } int64_t Duration::InMinutes() { - return std::llround((double)length / 60.0); + return std::llround(static_cast<double>(length) / 60.0); } int64_t Duration::InHours() { - return std::llround((double)length / 3600.0); + return std::llround(static_cast<double>(length) / 3600.0); } int64_t Duration::InDays() { - return std::llround((double)length / 86400.0); + return std::llround(static_cast<double>(length) / 86400.0); } int64_t GetSystemTime() {