提交 cbb6a171 编写于 作者: N Nicolargo

By default, hide disk I/O ram1-** (issue #714)

上级 e255b2a1
......@@ -12,6 +12,7 @@ Enhancements and new features:
* Add process summary min/max stats (issue #703)
* Add timestamp to the CSV export module (issue #708)
* Add a shortcut 'E' to delete process filter (issue #699)
* By default, hide disk I/O ram1-** (issue #714)
* When Glances is starting the notifications should be delayed (issue #732)
* Add option (--disable-bg) to disable ANSI background colours (issue #738 from okdana)
* [WebUI] add "pointer" cursor for sortable columns (issue #704 from @notFloran)
......
......@@ -215,6 +215,7 @@ Command-Line Options
hide kernel threads in process list
--tree display processes as a tree
-b, --byte display network rate in byte per second
--diskio-show-ramfs show RAM Fs in the disk IO plugin
--fahrenheit display temperature in Fahrenheit (default is Celsius)
-1, --percpu start Glances in per CPU mode
--fs-free-space display file system free space instead of used
......
......@@ -204,6 +204,8 @@ Start the client browser (browser mode):\n\
dest='process_tree', help='display processes as a tree')
parser.add_argument('-b', '--byte', action='store_true', default=False,
dest='byte', help='display network rate in byte per second')
parser.add_argument('--diskio-show-ramfs', action='store_true', default=False,
dest='diskio_show_ramfs', help='show RAM Fs in the DiskIO plugin')
parser.add_argument('--fahrenheit', action='store_true', default=False,
dest='fahrenheit', help='display temperature in Fahrenheit (default is Celsius)')
parser.add_argument('-1', '--percpu', action='store_true', default=False,
......
......@@ -94,6 +94,10 @@ class Plugin(GlancesPlugin):
diskio_new = diskiocounters
for disk in diskio_new:
# By default, RamFS is not displayed (issue #714)
if not self.args.diskio_show_ramfs and disk.startswith('ram'):
continue
# Compute bitrate
try:
read_bytes = (diskio_new[disk].read_bytes -
self.diskio_old[disk].read_bytes)
......
......@@ -183,6 +183,9 @@ display processes as a tree
.B \-b, \-\-byte
display network rate in byte per second [default: bit per second]
.TP
.B \-\-diskio\-show\-ramfs
show RAM Fs in the disk IO plugin
.TP
.B \-\-fahrenheit
display temperature in Fahrenheit (default is Celsius)
.TP
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册