~e]ddlZdZy)Nctd}td}|j}|j} |}tj}|dk(rtjd|}td|dd}|j}|j tj |dt|jd} t|jd} t|jd} t| | z dz} t| | z dz} | | k(rn$|jd|jd"|j |j | S)aReturns the number of jiffies per second for this machine. A jiffy is a value used by the kernel to report certain time-based events. Jiffies occur N times per second where N varies depending on the hardware the kernel is running on. This function gets the uptime for the current process, forks a child process and gets the uptime again; finally, using the running time of the child process compared with the uptimes to determine number of jiffies per second. z /proc/uptimerz/proc/dz/statg?) openreadosfork_exitclosewaitpidfloatsplitintseek) uptime1_file uptime2_file read_uptime1 read_uptime2 uptime1_datapid uptime2_data stat_file stat_dataseconds_uptime1seconds_uptime2 jiffie_uptimejiffies1jiffies2s 7/usr/lib/python3/dist-packages/landscape/lib/jiffies.pydetect_jiffiesr sP'L'L$$L$$L #~ ggi !8 HHQK#~ 6#a./ NN$  3 2 2 4Q 78 2 2 4Q 78IOO-b12 }6<=}6<= x  !!; > O)rr r!rr#s  1r!