Ñò  Kc@s2ddkaddkadefd„ƒYZdS(iÿÿÿÿNt dstat_plugincBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s Time from an NTP server. BEWARE: this dstat plugin typically takes a lot longer to run than system plugins and for that reason it is important to use an NTP server located nearby as well as make sure that it does not impact your other counters too much. cCs»d|_tidƒpd|_tidƒpd|_d|_tti|iti ƒƒƒ|_ d|_ d |_ d |_ d |_tititiƒ|_|iid ƒdS(Ntntpt DSTAT_TIMEFMTs%d-%m %H:%M:%StDSTAT_NTPSERVERs0.fedora.pool.ntp.orgtsis date/timettimel€~TgÐ?(s date/time(stime(tnametostgetenvttimefmtt ntpserverttypetlenRtstrftimet localtimetwidthtscaletnicktvarstepochtsockettAF_INETt SOCK_DGRAMt settimeout(tself((s/usr/share/dstat/dstat_ntp.pyt__init__s  $    cCsW|iiddd|idfƒ|iidƒ\}}tid|ƒd|iS(Nsi/ti{is!12Ii (RtsendtoR trecvfromtstructtunpackR(Rtdatataddress((s/usr/share/dstat/dstat_ntp.pytgettime$s$cCs`y|iƒWnKtij otd|i‚n'tij otd|i‚nXdS(Ns#Failed to connect to NTP server %s.s"Error connecting to NTP server %s.(R!Rtgaierrort ExceptionR terror(R((s/usr/share/dstat/dstat_ntp.pytcheck)s cCsfy/ti|iti|iƒƒƒ|ids