Server IP : 103.53.40.154 / Your IP : 3.149.237.231 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 ] |
---|
� '�Lc @ s d e f d � � YZ d S( t dstat_pluginc B s) e Z d Z d � Z d � Z d � Z RS( s� Power usage information from ACPI. Displays the power usage in watt per hour of your system's battery using ACPI information. This information is only available when the battery is being used (or being charged). c C s� d | _ d | _ d | _ d | _ d | _ d | _ d | _ g | _ xq t j d � D]` } xW t d | d � j � D]; } | j � } t | � d k r� qy n | j j | � Pqy WqX Wd S( Nt powert usaget ratet fi i i s /proc/acpi/battery/s /statei ( R ( s rate( t namet nickt varst typet widtht scaleR t batteriest ost listdirt dopent readlinest splitt lent append( t selft batteryt linet l( ( s /usr/share/dstat/dstat_power.pyt __init__ s ! c C s | j s t d � n d S( Ns7 No battery information found, no power usage statistics( R t Exception( R ( ( s /usr/share/dstat/dstat_power.pyt check s c C s� d } d } d } x{| j D]p} xOt d | d � j � D]3} | j � } t | � d k rg q= n | d d k r� | d d k r� q= n | d d !d d g k r� | d d k r� d } Pn | d d !d d g k r� t | d � d } q= | d d !d d g k r0| d d k r0t | d � d } q= | d d !d d g k r= | d d k r= t | d � d } q= q= W| j | | | | _ q W| j d k r�d | _ n t j r�| j t | j d <n | j | j d <t t j k r�d | _ n d S( Ni s /proc/acpi/battery/s /statei s present:i t yesi t chargings state:t dischargingt presents voltage:g @�@s rate:t mWt mAi����R ( R R R R R t intR t opt updatet elapsedt valt stept delay( R t amperes_drawnt voltaget watts_drawnR R R ( ( s /usr/share/dstat/dstat_power.pyt extract s6 ! ))) ( t __name__t __module__t __doc__R R R* ( ( ( s /usr/share/dstat/dstat_power.pyR s N( t dstatR ( ( ( s /usr/share/dstat/dstat_power.pyt <module> s