/usr/lib/python3.9/site-packages/dnf/cli/__pycache__
Edit: /usr/lib/python3.9/site-packages/dnf/cli/__pycache__/utils.cpython-39.pyc (3250B)
a
©!c¨ ã @ s’ d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZ ddl
Z
ddlZddlZe
ejd ¡Ze
d¡Zd d
„ Zdd„ Zd
d„ Zdd„ ZdS )z/Various utility functions, and a utility class.é )Úabsolute_import)Úunicode_literals)Ú
format_number)Ú_NÚ
SC_CLK_TCKÚdnfc C s t | ƒt S )zä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
)ÚintÚ_USER_HZ)Zjiffies© r
ú1/usr/lib/python3.9/site-packages/dnf/cli/utils.pyÚjiffies_to_seconds s r c C sj | dkr0d| d | d d | d d | d f S | dkrVd| d | d d | d f S d| d | d f S )a Return 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€Q z%d day(s) %d:%02d:%02di é é<