period for update too

This commit is contained in:
Wolfgang Hottgenroth 2025-03-02 22:14:20 +01:00
parent 679b9492d7
commit b5e8a63013

View File

@ -1,4 +1,4 @@
pass_valueimport ntp.packe0
import ntp.packet
import threading
from contextlib import AbstractContextManager
import time
@ -324,7 +324,11 @@ if __name__ == '__main__':
ntpserver = args.ntpserver
period = args.period
try:
period = int(args.period)
except ValueError:
logger.error("period must be integer")
sys.exit(1)
try: