diff options
author | Max Kellermann <max@musicpd.org> | 2018-09-21 20:50:15 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-09-21 20:50:15 +0200 |
commit | 1a2012a97e993869914a224d1603fdafcf3f9d3b (patch) | |
tree | b42d9b971306b76d84383ef57623d7b38f313167 /src/Stats.cxx | |
parent | 90f4e97751a7ff2752d12f611cf779b7c8f5804a (diff) |
player/Control: convert `total_play_time` to `FloatDuration`
Diffstat (limited to 'src/Stats.cxx')
-rw-r--r-- | src/Stats.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Stats.cxx b/src/Stats.cxx index df3b78148..0ba5d6b85 100644 --- a/src/Stats.cxx +++ b/src/Stats.cxx @@ -120,7 +120,7 @@ stats_print(Response &r, const Partition &partition) #else (unsigned)std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now() - start_time).count(), #endif - (unsigned long)(partition.pc.GetTotalPlayTime() + 0.5)); + (unsigned long)(partition.pc.GetTotalPlayTime().count() + 0.5)); #ifdef ENABLE_DATABASE const Database *db = partition.instance.database; |