Linux business57.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
Server IP : 199.188.201.191 & Your IP : 3.148.217.66
Domains :
Cant Read [ /etc/named.conf ]
User : derozboy
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
iotop /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-06-14 07:36
__init__.py
0
B
-rw-r--r--
2013-05-26 22:44
data.py
15.09
KB
-rw-r--r--
2024-04-06 14:56
genetlink.py
2
KB
-rw-r--r--
2013-05-26 22:44
ioprio.py
5.37
KB
-rw-r--r--
2013-05-26 22:44
netlink.py
7.71
KB
-rw-r--r--
2013-05-26 22:44
ui.py
24.67
KB
-rw-r--r--
2024-04-06 14:56
version.py
16
B
-rw-r--r--
2013-05-26 22:44
vmstat.py
1.52
KB
-rw-r--r--
2013-05-26 22:44
Save
Rename
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # # See the COPYING file for license information. # # Copyright (c) 2007 Guillaume Chazarain <guichaz@gmail.com> class VmStat(object): def __init__(self): self.vmstat_file = open('/proc/vmstat') self.vmstat = self.read() def read(self): def extract(line): return int(line.split()[1]) * 1024 for line in self.vmstat_file: if line.startswith('pgpgin '): pgpgin = extract(line) break for line in self.vmstat_file: if line.startswith('pgpgout '): pgpgout = extract(line) break self.vmstat_file.seek(0) return pgpgin, pgpgout def delta(self): now = self.read() delta = now[0] - self.vmstat[0], now[1] - self.vmstat[1] self.vmstat = now return delta