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 ] |
---|
� ;�qKc @ s d e f d � � YZ d S( t dstat_pluginc B s2 e Z d Z d � Z d � Z d � Z d � Z RS( s� Remaining battery time. Calculated from power drain and remaining battery power. Information is retrieved from ACPI. c C s( d | _ d | _ d | _ d | _ d S( Nt remaint ti i ( t namet typet widtht scale( t self( ( s( /usr/share/dstat/dstat_battery_remain.pyt __init__ s c C s� g } x� t j d � D] } xv t d | d � j � D]Z } | j � } t | � d k ra q7 n | d d k r7 | d d k r7 | j | � q7 q7 Wq W| j � | S( Ns /proc/acpi/battery/s /statei i s present:i t yes( t ost listdirt dopent readlinest splitt lent appendt sort( R t rett batteryt linet l( ( s( /usr/share/dstat/dstat_battery_remain.pyt vars s ! c C s g | j D] } | j � ^ q S( N( R t lower( R R ( ( s( /usr/share/dstat/dstat_battery_remain.pyt nick s c C s� x� | j D]� } x� t d | d � j � D]� } | j � } t | � d k rU q+ n | d d !d d g k r� t | d � } q+ q+ | d d !d d g k r+ t | d � } q+ q+ q+ W| r� | r� | d | | j | <q d | j | <q Wd S( Ns /proc/acpi/battery/s /statei i i t remainings capacity:t presents rate:i<