From f4ea5dc0c03ca2b8060d08c21965abd6680f34f5 Mon Sep 17 00:00:00 2001 From: Kai Krueger Date: Sun, 15 Jan 2012 03:00:59 +0000 Subject: [PATCH] [render_old] print time stamp of the old tile --- render_old.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/render_old.c b/render_old.c index dcf79a0..26fdd93 100644 --- a/render_old.c +++ b/render_old.c @@ -173,11 +173,15 @@ int process(int fd, const char *name) { char xmlconfig[XMLCONFIG_MAX]; int x, y, z; + struct stat b; + + if (stat(name, &b)) + return 1; if (path_to_xyz(name, xmlconfig, &x, &y, &z)) return 1; - printf("Requesting xml(%s) x(%d) y(%d) z(%d)\n", xmlconfig, x, y, z); + printf("Requesting xml(%s) x(%d) y(%d) z(%d) as last modified at %s\n", xmlconfig, x, y, z, ctime(&b.st_mtime)); return process_loop(fd, xmlconfig, x, y, z); }