ѠgU0ddlmZdZGddZdS)) basestringshamancHeZdZdZdZdZdZdZdZdZ dZ d Z d Z d S) LVEStat)_get_attributes_set_attributes reseller_ididmepcpuio cpu_usage mem_usageio_usagelmemlepncpu mem_fault mep_faultlmemphylcpuwlnprocmemphy memphy_faultnproc nproc_faultliopsiopscd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_d|_d|_d|_|dkr|j|_|j|_n7|dkr|j|_|j|_n|j|_|j|_t=|t>r| |dSt=|tBr|"|dSdS)a :param line: source of data (line from /proc/lve/list or other LVEStat or None to make a dumb LVEStat initialized with zeroes) :type line: str | LVEStat | NoneType :param version: version of lve :type version: int r N)#r r r r r rrrrrrrrrrrrrrrrr_set_attributes6r_get_attributes6r_set_attributes8_get_attributes8_set_attributes10_get_attributes10 isinstancestrinit_basestringr init_lvestat)selflineversions /builddir/build/BUILDROOT/alt-python27-cllib-3.4.22-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestat.py__init__zLVEStat.__init__'s]          Q;;#'#8D #'#8D r\\#'#8D #'#8D #'#9D #'#9D dC  $   & & & & & g & & $   d # # # # # $ $cT||dSN)rr)r,r-s r/r+zLVEStat.init_lvestatUs( T113344444r1cd|ddD}||dS)Nc,g|]}t|S)int).0is r/ z+LVEStat.init_basestring..YsAAAQ#a&&AAAr1, )replacesplitr)r,r-results r/r*zLVEStat.init_basestringXsIAA$,,sC"8"8">">"@"@AAA V$$$$$r1c|d|_|d|_|d|_|d|_|d|_|d|_|d|_|d|_|d |_|d |_ |d |_ |d |_ |d |_ |d|_ |d|_|d|_|d|_|d|_|d|_dS)Nrr r! r r r r rrrrrrrrrrrrrrrr,argss r/r"zLVEStat._set_attributes6\s G G G G G G G  G  G G  H H H  H  H  H  H H  Hr1c|j|j|j|j|j|j|j|j|j|j |j |j |j |j |j|j|j|j|jfSr3rQr,s r/r#zLVEStat._get_attributes6qsm G H H G N N M I H I N N L J K K   J  ' r1cd|||d|_|d|_dS)N)r"rrrRs r/r$zLVEStat._set_attributes8s0 d###"X "X r1cH||j|jfzSr3)r#rrrUs r/r%zLVEStat._get_attributes8s*$$&& J I* r1cB|d|_|d|_|d|_|d|_|d|_|d|_|d|_|d|_|d |_|d |_ |d |_ |d |_ |d |_ |d|_ |d|_|d|_|d|_|d|_|d|_|d|_|d|_|d|_dS)NrrArBrCrDrErFrGr rHr!rKrLrMrNrOrPrWrXr r r rrrrrrr rr rrrrrrrrrrrRs r/r&zLVEStat._set_attributes10s G G G G  G  G G  G  G  G H !H H H H  H H H  H H  H H r1c|j|j|j|j|j|j|j|j|j|j |j dd|j |j |j |j|j|j|j|j|j|j|jddfSr3r^rUs r/r'zLVEStat._get_attributes10s   G H J I H K I L G J   H N N M N N K   J   I  5 r1N) __name__ __module__ __qualname__ __slots__r0r+r*r"r#r$r%r&r'r6r1r/rr sI4,$,$,$\555%%%%%%*,  %%%8r1rN) past.builtinsr __author__rr6r1r/rfsZ%$$$$$  ||||||||||r1