1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

machine: use deserialize_timestamp_value()

which is introduced in the ebf30a086d commit.
This commit is contained in:
Alexander Kuleshov 2016-02-16 00:04:09 +06:00
parent ebf30a086d
commit 8e1afa0a5d

View File

@ -299,17 +299,8 @@ int machine_load(Machine *m) {
m->class = c;
}
if (realtime) {
unsigned long long l;
if (sscanf(realtime, "%llu", &l) > 0)
m->timestamp.realtime = l;
}
if (monotonic) {
unsigned long long l;
if (sscanf(monotonic, "%llu", &l) > 0)
m->timestamp.monotonic = l;
}
deserialize_timestamp_value(realtime, &m->timestamp.realtime);
deserialize_timestamp_value(monotonic, &m->timestamp.monotonic);
if (netif) {
size_t allocated = 0, nr = 0;