bundles/systemd: fix edgecase in check_timesyncd_sync
This commit is contained in:
parent
a008a47559
commit
8621c726bb
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ try:
|
|||
print('NTP service is active, but could not get offset. Something is wrong.')
|
||||
exit(1)
|
||||
|
||||
if out in ('+0', '-0', '0'):
|
||||
# if the offset is exactly zero, timedatectl only shows '0', thus
|
||||
# breaking the logic below.
|
||||
out = '0ms'
|
||||
|
||||
if out.startswith('+'):
|
||||
out = out[1:]
|
||||
|
||||
|
|
Loading…
Reference in a new issue