]> err.no Git - systemd/commitdiff
manager: properly parse finish timestamp
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2010 12:41:07 +0000 (14:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2010 12:41:07 +0000 (14:41 +0200)
src/manager.c

index 37f0d0492916e31587359e3053a9ca5b9cac172e..e90757eacd76873a4e844cef11762463f19816aa 100644 (file)
@@ -2562,8 +2562,8 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds) {
                 } else if (startswith(l, "finish-timestamp=")) {
                         unsigned long long a, b;
 
-                        if (sscanf(l+18, "%lli %llu", &a, &b) != 2)
-                                log_debug("Failed to parse finish timestamp value %s", l+18);
+                        if (sscanf(l+17, "%lli %llu", &a, &b) != 2)
+                                log_debug("Failed to parse finish timestamp value %s", l+17);
                         else {
                                 m->finish_timestamp.realtime = a;
                                 m->finish_timestamp.monotonic = b;