Exemple #1
0
def is_clock_synchronized():
    result = command_util.run_program('ntpstat', error_ok=True)
    return ClockSyncCheckResult(
        is_synchronized=result.stdout.startswith('synchron'),
        cmd_result=result)
def is_clock_synchronized():
    result = command_util.run_program('ntpstat', error_ok=True)
    return ClockSyncCheckResult(
        is_synchronized=result.stdout.startswith('synchron'),
        cmd_result=result)