Commit f16db6cd authored by Max Kellermann's avatar Max Kellermann

DatabasePrint: don't print zero mtime

Zero means "unknown".
parent 4943606f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment