MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.119.124.52
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/share/locale/kab/../gmh/../frs/../../dstat/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/locale/kab/../gmh/../frs/../../dstat/dstat_battery_remain.pyc
�
;�qKc@sdefd��YZdS(tdstat_plugincBs2eZdZd�Zd�Zd�Zd�ZRS(s�
    Remaining battery time.

    Calculated from power drain and remaining battery power. Information is
    retrieved from ACPI.
    cCs(d|_d|_d|_d|_dS(Ntremainttii(tnamettypetwidthtscale(tself((s(/usr/share/dstat/dstat_battery_remain.pyt__init__s			cCs�g}x�tjd�D]}xvtd|d�j�D]Z}|j�}t|�dkraq7n|ddkr7|ddkr7|j|�q7q7WqW|j�|S(Ns/proc/acpi/battery/s/stateiispresent:ityes(tostlistdirtdopent	readlinestsplittlentappendtsort(Rtrettbatterytlinetl((s(/usr/share/dstat/dstat_battery_remain.pytvarss! 
cCs g|jD]}|j�^q
S(N(Rtlower(RR((s(/usr/share/dstat/dstat_battery_remain.pytnickscCs�x�|jD]�}x�td|d�j�D]�}|j�}t|�dkrUq+n|dd!ddgkr�t|d�}q+q+|dd!dd	gkr+t|d�}q+q+q+W|r�|r�|d
||j|<q
d|j|<q
WdS(Ns/proc/acpi/battery/s/stateiiit	remainings	capacity:tpresentsrate:i<i����(RRR
RRtinttval(RRRRRtrate((s(/usr/share/dstat/dstat_battery_remain.pytextracts!
(t__name__t
__module__t__doc__RRRR(((s(/usr/share/dstat/dstat_battery_remain.pyRs
			N(tdstatR(((s(/usr/share/dstat/dstat_battery_remain.pyt<module>s

MMCT - 2023