Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.152
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
site-packages /
iotop /
[ HOME SHELL ]
Name
Size
Permission
Action
__init__.py
0
B
-rw-r--r--
__init__.pyc
137
B
-rw-r--r--
__init__.pyo
137
B
-rw-r--r--
data.py
14.85
KB
-rw-r--r--
data.pyc
15.25
KB
-rw-r--r--
data.pyo
15.21
KB
-rw-r--r--
genetlink.py
2
KB
-rw-r--r--
genetlink.pyc
3.43
KB
-rw-r--r--
genetlink.pyo
3.43
KB
-rw-r--r--
ioprio.py
5.43
KB
-rw-r--r--
ioprio.pyc
5.5
KB
-rw-r--r--
ioprio.pyo
5.5
KB
-rw-r--r--
netlink.py
7.71
KB
-rw-r--r--
netlink.pyc
12.06
KB
-rw-r--r--
netlink.pyo
12.06
KB
-rw-r--r--
ui.py
23.17
KB
-rw-r--r--
ui.pyc
24.54
KB
-rw-r--r--
ui.pyo
24.54
KB
-rw-r--r--
version.py
16
B
-rw-r--r--
version.pyc
162
B
-rw-r--r--
version.pyo
162
B
-rw-r--r--
vmstat.py
1.52
KB
-rw-r--r--
vmstat.pyc
1.37
KB
-rw-r--r--
vmstat.pyo
1.37
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : vmstat.py
# 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
Close