Code

store: Print the right update timestamp when dumping services.
authorSebastian Harl <sh@tokkee.org>
Mon, 17 Dec 2012 10:37:56 +0000 (11:37 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 17 Dec 2012 10:37:56 +0000 (11:37 +0100)
src/core/store.c

index 888fbb973449870ae82b5c2910a386e47a2481f9..87f94dd3b5edbccb2e1e6a60ecc57392399e97a2 100644 (file)
@@ -427,7 +427,7 @@ sc_store_dump(FILE *fh)
                        assert(svc);
 
                        if (! sc_strftime(time_str, sizeof(time_str),
-                                               "%F %T %z", host->host_last_update))
+                                               "%F %T %z", svc->svc_last_update))
                                snprintf(time_str, sizeof(time_str), "<error>");
                        time_str[sizeof(time_str) - 1] = '\0';