aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabasePrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 23:01:24 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 23:01:32 +0100
commitf16db6cd8054bb4722ec6e80fe529b5f2390880f (patch)
treec34ac7710476dfc7bb68f3ebecad82ec70b5af26 /src/DatabasePrint.cxx
parent4943606f4a240e04ad3fdd0c9f28d4f8c58591ed (diff)
downloadmpd-f16db6cd8054bb4722ec6e80fe529b5f2390880f.tar.gz
mpd-f16db6cd8054bb4722ec6e80fe529b5f2390880f.tar.xz
mpd-f16db6cd8054bb4722ec6e80fe529b5f2390880f.zip
DatabasePrint: don't print zero mtime
Zero means "unknown".
Diffstat (limited to 'src/DatabasePrint.cxx')
-rw-r--r--src/DatabasePrint.cxx4
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;