Code

store: Print the right update timestamp when dumping services.
[sysdb.git] / 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';