DatabasePrint: don't print zero mtime

Zero means "unknown".
This commit is contained in:
Max Kellermann 2014-01-22 23:01:24 +01:00
parent 4943606f4a
commit f16db6cd80
1 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,8 @@ PrintDirectoryFull(Client &client, const Directory &directory)
{ {
if (!directory.IsRoot()) { if (!directory.IsRoot()) {
client_printf(client, "directory: %s\n", directory.GetPath()); client_printf(client, "directory: %s\n", directory.GetPath());
if (directory.mtime > 0)
time_print(client, "Last-Modified", directory.mtime); time_print(client, "Last-Modified", directory.mtime);
} }