diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 23:01:24 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 23:01:32 +0100 |
commit | f16db6cd8054bb4722ec6e80fe529b5f2390880f (patch) | |
tree | c34ac7710476dfc7bb68f3ebecad82ec70b5af26 /src | |
parent | 4943606f4a240e04ad3fdd0c9f28d4f8c58591ed (diff) | |
download | mpd-f16db6cd8054bb4722ec6e80fe529b5f2390880f.tar.gz mpd-f16db6cd8054bb4722ec6e80fe529b5f2390880f.tar.xz mpd-f16db6cd8054bb4722ec6e80fe529b5f2390880f.zip |
DatabasePrint: don't print zero mtime
Zero means "unknown".
Diffstat (limited to '')
-rw-r--r-- | src/DatabasePrint.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx index 7b5975275..ef7ba825b 100644 --- a/src/DatabasePrint.cxx +++ b/src/DatabasePrint.cxx @@ -46,7 +46,9 @@ PrintDirectoryFull(Client &client, const Directory &directory) { if (!directory.IsRoot()) { client_printf(client, "directory: %s\n", directory.GetPath()); - time_print(client, "Last-Modified", directory.mtime); + + if (directory.mtime > 0) + time_print(client, "Last-Modified", directory.mtime); } return true; |