DatabasePrint: don't print zero mtime
Zero means "unknown".
This commit is contained in:
parent
4943606f4a
commit
f16db6cd80
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue