Anons79 Mini Shell

Directory : /usr/lib/python2.7/site-packages/dnf/cli/
Upload File :
Current File : //usr/lib/python2.7/site-packages/dnf/cli/utils.pyo

�
�[/\c@@s�dZddlmZddlmZddlmZddlmZddlZ	ddl
Z
ddlZddlZej
ejd�Ze
jd�Zd	�Zd
�Zd�Zd�ZdS(
u/Various utility functions, and a utility class.i(tabsolute_import(tunicode_literals(t
format_number(t_Nu
SC_CLK_TCKudnfcC@st|�tS(u�Convert a number of jiffies to seconds. How many jiffies are in a second
    is system-dependent, e.g. 100 jiffies = 1 second is common.

    :param jiffies: a number of jiffies
    :return: the equivalent number of seconds
    (tintt_USER_HZ(tjiffies((s1/usr/lib/python2.7/site-packages/dnf/cli/utils.pytjiffies_to_secondsscC@s{|dkr8d|d	|d
d|dd|dfS|dkred|d|dd|dfSd|d|dfS(
uReturn a human-readable string representation of the length of
    a time interval given in seconds.

    :param seconds: the length of the time interval in seconds
    :return: a human-readable string representation of the length of
      the time interval
    i<iu%d day(s) %d:%02d:%02du%d:%02d:%02du	%02d:%02dii�Qii�Qiii((tseconds((s1/usr/lib/python2.7/site-packages/dnf/cli/utils.pytseconds_to_ui_time)s
cC@s6t|�}tjjd|�sMtjjd�sMtjjd|�rQdSi}td|���}x�|D]�}|ddkr�qqn|d jdd�}t|�d	kr�qqntjj	|dd
�|d<|dj
�||dj
�j�<qqWWdQXd|krdSd
|kr&dSd}td��D}x:|D]2}|j
d�rBt|td�d!�}PqBqBWWdQX|dkr�dStd|���}|j�j�}|t|d�|d<itd�d6td�d6td�d6td�d6td�d6j|d	td��|d<WdQX|S(u!Return info dict about a process.u/proc/%d/statusu
/proc/statu
/proc/%d/statNi����u
u:	iiu kBiuvmrssuvmsizeubtime iu
start_timeuRunninguRuSleepinguSuUninterruptibleuDuZombieuZuTraced/StoppeduTuUnknownustate(RtostpathtexiststopentsplittlentdnftutiltrtrimtstriptlowertNonet
startswithtreadRRtget(tpidtpststatus_filetlinetdatat	boot_timet	stat_filetps_stat((s1/usr/lib/python2.7/site-packages/dnf/cli/utils.pytget_process_info<sJ
.



 cC@st|�}|s2td�}tj||�dStd�||df}tjd|�tjtd�tt|d�d�tt|d	�d��tttj��|d
�}tjtd�tj	j
|d
�|�tjtd�|d
�dS(u0Output information about process holding a lock.u=Unable to find information about the locking process (PID %d)Nu$  The application with PID %d is: %sunameu%su    Memory : %5s RSS (%5sB VSZ)uvmrssiuvmsizeu
start_timeu    Started: %s - %s agou    State  : %sustate(R!RtloggertcriticalRRR	ttimeRRtnormalize_time(RRtmsgtago((s1/usr/lib/python2.7/site-packages/dnf/cli/utils.pytshow_lock_ownerls (t__doc__t
__future__RRtdnf.cli.formatRtdnf.i18nRtdnf.utilRtloggingR
R$tsysconft
sysconf_namesRt	getLoggerR"RR	R!R((((s1/usr/lib/python2.7/site-packages/dnf/cli/utils.pyt<module>s	
		0

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]