mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-11 04:58:19 +03:00
sd-event: fix error handling
Follow-up for 6d2326e036ceed30f9ccdb0266713c10a44dcf6c.
This commit is contained in:
parent
ca06d8984f
commit
1912f790fe
@ -1269,7 +1269,7 @@ static void initialize_perturb(sd_event *e) {
|
||||
if (_likely_(e->perturb != USEC_INFINITY))
|
||||
return;
|
||||
|
||||
if (sd_id128_get_boot(&id) >= 0 || sd_id128_get_machine(&id) > 0)
|
||||
if (sd_id128_get_boot(&id) >= 0 || sd_id128_get_machine(&id) >= 0)
|
||||
e->perturb = (id.qwords[0] ^ id.qwords[1]) % USEC_PER_MINUTE;
|
||||
else
|
||||
e->perturb = 0; /* This is a super early process without /proc and /etc ?? */
|
||||
|
Loading…
x
Reference in New Issue
Block a user