KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /usr/share/dstat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/dstat/dstat_ntp.pyo
�
��
Kc@s2ddladdladefd��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|_d|_d
|_tjd�p-d|_tjd�pEd|_d|_tt	j
|jt	j���|_d	|_
d
|_tjtjtj�|_|jjd�dS(Ntntps	date/timettimet
DSTAT_TIMEFMTs%d-%m %H:%M:%StDSTAT_NTPSERVERs0.fedora.pool.ntp.orgtsil�~Tg�?(s	date/time(stime(tnametnicktvarstostgetenvttimefmtt	ntpserverttypetlenRtstrftimet	localtimetwidthtscaletepochtsockettAF_INETt
SOCK_DGRAMt
settimeout(tself((s/usr/share/dstat/dstat_ntp.pyt__init__s				$		cCsW|jjddd|jdf�|jjd�\}}tjd|�d|jS(Nsi/ti{is!12Ii
(RtsendtoRtrecvfromtstructtunpackR(Rtdatataddress((s/usr/share/dstat/dstat_ntp.pytgettime$s$cCs\y|j�WnGtjk
r4td|j�n$tjk
rWtd|j�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/tj|jtj|j���|jd<Wn0tddj|jd�d|jd<nXdS(NRR$t-it (	RRRRR!tvaltthemetrjustR(R((s/usr/share/dstat/dstat_ntp.pytextract1s/cCs"tj|jtj|j���S(N(RRRRR!(R((s/usr/share/dstat/dstat_ntp.pytshowcsv7s(t__name__t
__module__t__doc__RR!R%R+R,(((s/usr/share/dstat/dstat_ntp.pyRs				(RRtdstatR(((s/usr/share/dstat/dstat_ntp.pyt<module>s

Anon7 - 2021