aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/string.h b/src/util/string.h
index c155d2f4a..1a0b9f60d 100644
--- a/src/util/string.h
+++ b/src/util/string.h
@@ -616,9 +616,9 @@ inline const char *bool_to_cstr(bool val)
inline const std::string duration_to_string(int sec)
{
- int min = floor(sec / 60);
+ int min = sec / 60;
sec %= 60;
- int hour = floor(min / 60);
+ int hour = min / 60;
min %= 60;
std::stringstream ss;