403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/dstat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/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.
    cCsXd|_d|_d|_d|_d|_ttiƒƒ|_h|_	h|_
dS(Nsmost expensivetsiiscpu process(scpu process(tnamettypetwidthtscaletvarststrtostgetpidtpidtpidset1tpidset2(tself((s!/usr/share/dstat/dstat_top_cpu.pyt__init__s						cCsd|id<d|id<xitidƒD]X}yAt|ƒ||ijow*ntd|ƒiƒiƒ}Wn+tj
o
q*nt	j
o
q*nXt
|ƒdjoq*n|ii|ƒpd|i|<nt|d	ƒt|d
ƒ|i
|<|i
||i|dtt}||idjoq*n|ddd
!}||id<||id<t||ƒ|id<q*W|iddjoPd|id|idd|id!t|iddddƒf|id<nttijo|ii|i
ƒndS(Ngtmaxtscpu processs/proc/s
/proc/%s/statiii
igð?iiÿÿÿÿR
Rs%-*s%sitfi"(tvalRtlistdirtintR
topentreadtsplitt
ValueErrortIOErrortlenRthas_keyRtelapsedtcpunrtgetnamebypidRtcprinttsteptoptdelaytupdate(R
R
tltusageR((s!/usr/share/dstat/dstat_top_cpu.pytextracts:


 %$

PcCsd|id|idfS(Ns	%s / %d%%RR(R(R
((s!/usr/share/dstat/dstat_top_cpu.pytshowcsvBs(t__name__t
__module__t__doc__RR&R'(((s!/usr/share/dstat/dstat_top_cpu.pyRs			.N(tdstatR(((s!/usr/share/dstat/dstat_top_cpu.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit