time-util: add and use USEC/NSEC_INFINIY

This commit is contained in:
Kay Sievers
2014-07-29 13:20:20 +02:00
parent cf347234ae
commit 3a43da2832
23 changed files with 79 additions and 76 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ static void timer_init(Unit *u) {
assert(u);
assert(u->load_state == UNIT_STUB);
t->next_elapse_monotonic_or_boottime = (usec_t) -1;
t->next_elapse_realtime = (usec_t) -1;
t->next_elapse_monotonic_or_boottime = USEC_INFINITY;
t->next_elapse_realtime = USEC_INFINITY;
t->accuracy_usec = u->manager->default_timer_accuracy_usec;
}