aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/LightSong.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/LightSong.cxx')
-rw-r--r--src/db/LightSong.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/LightSong.cxx b/src/db/LightSong.cxx
index af1e801f8..3e0f361d8 100644
--- a/src/db/LightSong.cxx
+++ b/src/db/LightSong.cxx
@@ -23,11 +23,11 @@
double
LightSong::GetDuration() const
{
- if (end_ms > 0)
- return (end_ms - start_ms) / 1000.0;
+ if (end_time.IsPositive())
+ return (end_time - start_time).ToDoubleS();
if (tag->time <= 0)
return 0;
- return tag->time - start_ms / 1000.0;
+ return tag->time - start_time.ToDoubleS();
}