MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.142.210.173
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/sbin/../share/dstat/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/sbin/../share/dstat/dstat_top_cpu.pyo
�
���Kc@sdefd��YZdS(tdstat_plugincBs)eZdZd�Zd�Zd�ZRS(s
    Most expensive CPU process.

    Displays the process that uses the CPU the most during the monitored
    interval. The value displayed is the percentage of CPU time for the total
    amount of CPU processing power. Based on per process CPU information.
    cCs:d|_d|_d|_d|_d|_i|_dS(Nsmost expensivescpu processtsii(scpu process(tnametvarsttypetwidthtscaletpidset1(tself((s!/usr/share/dstat/dstat_top_cpu.pyt__init__s					cCs�d|_i|_d|jd<xt�D]}ytd|�}Wntk
rYq)nXt|�dkrrq)n|jj|�s�d|j|<nt	|d�t	|d�|j|<|j||j|d	t
t}||jdkr�q)n|d
d
d!}||jd<||jd<t||�|jd
<q)W|jddkr�d|j
d|jd
d|j
d!t|jdddd�f|_nttjkr�|j|_ndS(Ntgtmaxs
/proc/%s/statiii
ig�?ii����tpidRs%-*s%sitfi"(toutputtpidset2tvaltproc_pidlisttproc_splitlinetIOErrortlenRthas_keytlongtelapsedtcpunrtgetnamebypidRtcprinttsteptoptdelay(RRtltusageR((s!/usr/share/dstat/dstat_top_cpu.pytextracts0		

%$

KcCsd|jd|jdfS(Ns	%s / %d%%RR(R(R((s!/usr/share/dstat/dstat_top_cpu.pytshowcsv:s(t__name__t
__module__t__doc__R	R R!(((s!/usr/share/dstat/dstat_top_cpu.pyRs		'N(tdstatR(((s!/usr/share/dstat/dstat_top_cpu.pyt<module>s

MMCT - 2023