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,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;