period for update too
This commit is contained in:
parent
679b9492d7
commit
b5e8a63013
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user