diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-18 13:19:13 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-08-18 12:22:47 +0200 |
commit | b886dfae4d4a4d5ca49fd1323e18bae0e78dfab1 (patch) | |
tree | dae868d33c44c9c411d6ab7d94b1738f13dd7d37 /src/SongPrint.cxx | |
parent | 902fbb33471b07c3ab9bf62d13927f2db46e35f5 (diff) |
DetachedSong, db/LightSong, db/simple/Song: use std::chrono::system_clock::time_point
Diffstat (limited to 'src/SongPrint.cxx')
-rw-r--r-- | src/SongPrint.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SongPrint.cxx b/src/SongPrint.cxx index c06c2a6a8..a7e816822 100644 --- a/src/SongPrint.cxx +++ b/src/SongPrint.cxx @@ -28,6 +28,7 @@ #include "TagPrint.hxx" #include "client/Response.hxx" #include "fs/Traits.hxx" +#include "util/ChronoUtil.hxx" #include "util/UriUtil.hxx" #define SONG_FILE "file: " @@ -88,7 +89,7 @@ song_print_info(Response &r, const LightSong &song, bool base) PrintRange(r, song.start_time, song.end_time); - if (song.mtime > 0) + if (!IsNegative(song.mtime)) time_print(r, "Last-Modified", song.mtime); tag_print(r, *song.tag); @@ -101,7 +102,7 @@ song_print_info(Response &r, const DetachedSong &song, bool base) PrintRange(r, song.GetStartTime(), song.GetEndTime()); - if (song.GetLastModified() > 0) + if (!IsNegative(song.GetLastModified())) time_print(r, "Last-Modified", song.GetLastModified()); tag_print_values(r, song.GetTag()); |