From 3ec9fcfc443a68c9f57e0314c47e70ca02a32530 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 2 Feb 2020 21:21:57 -0800 Subject: treewide: use boost::lround when std::round is unavailable This is the case with uClibc-ng currently. Signed-off-by: Rosen Penev --- src/Stats.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Stats.cxx') diff --git a/src/Stats.cxx b/src/Stats.cxx index 2208312d7..7467a3a17 100644 --- a/src/Stats.cxx +++ b/src/Stats.cxx @@ -28,13 +28,13 @@ #include "db/Stats.hxx" #include "Log.hxx" #include "time/ChronoUtil.hxx" +#include "util/Math.hxx" #ifdef _WIN32 #include "system/Clock.hxx" #endif #include -#include #ifndef _WIN32 /** @@ -126,7 +126,7 @@ stats_print(Response &r, const Partition &partition) r.Format("uptime: %u\n" "playtime: %lu\n", (unsigned)std::chrono::duration_cast(uptime).count(), - std::lround(partition.pc.GetTotalPlayTime().count())); + lround(partition.pc.GetTotalPlayTime().count())); #ifdef ENABLE_DATABASE const Database *db = partition.instance.GetDatabase(); -- cgit v1.2.3