From f2fb8d982b23853c35ecc4762f44b3f6dba6f8a6 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 10 Jan 2016 09:53:48 +0100 Subject: [PATCH] Update doc and correct grammatical errors --- NEWS | 1 + docs/glances-doc.rst | 2 ++ glances/plugins/glances_alert.py | 2 +- man/glances.1 | 12 +++++++++--- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index eef5fae2..7d13389b 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ Version 2.6 Enhancements and new features: * New folders' monitoring plugins (issue #721) + * Add an option to disable top menu (issue #766) * Add IOps in the DiskIO plugin (issue #763) * Add hide configuration key for FS Plugin (issue #736) * Add process summary min/max stats (issue #703) diff --git a/docs/glances-doc.rst b/docs/glances-doc.rst index f7692a22..9a699b0f 100644 --- a/docs/glances-doc.rst +++ b/docs/glances-doc.rst @@ -151,6 +151,8 @@ Command-Line Options disable quick look module -4, --full-quicklook enable all but quick look and load + -5, --disable-top + Enable/disable the top menu (QuickLook, CPU, MEM and LOAD) --disable-cpu disable CPU module --disable-mem disable MEM module --disable-swap disable SWAP module diff --git a/glances/plugins/glances_alert.py b/glances/plugins/glances_alert.py index 6a07d2ed..503cd890 100644 --- a/glances/plugins/glances_alert.py +++ b/glances/plugins/glances_alert.py @@ -74,7 +74,7 @@ class Plugin(GlancesPlugin): ret.append(self.curse_add_line(msg, "TITLE")) logs_len = glances_logs.len() if logs_len > 1: - msg = ' (lasts {0} entries)'.format(logs_len) + msg = ' (last {0} entries)'.format(logs_len) else: msg = ' (one entry)' ret.append(self.curse_add_line(msg, "TITLE")) diff --git a/man/glances.1 b/man/glances.1 index 21ceca70..df638621 100644 --- a/man/glances.1 +++ b/man/glances.1 @@ -33,12 +33,15 @@ enable debug mode (log file is /tmp/glances.log) .B \-C CONF_FILE, \-\-config CONF_FILE path to the configuration file .TP -.B \-\-disable-quicklook +.B \3, \-\-disable-quicklook disable quick look module .TP .B \-\-full-quicklook disable all but quick look and load modules .TP +.B \4, \-\-disable-top +disable top menu (QuickLook, CPU, MEM and LOAD) +.TP .B \-\-disable-cpu disable CPU module .TP @@ -78,7 +81,7 @@ disable RAID module .B \-\-disable-docker disable Docker module .TP -.B \-\-disable-left-sidebar +.B \2, \-\-disable-left-sidebar disable network, disk I/O, file system and sensors modules .TP .B \-\-disable-process @@ -183,7 +186,7 @@ display processes as a tree .B \-b, \-\-byte display network rate in byte per second [default: bit per second] .TP -.B \-\-diskio\-show\-ramfs +.B \-\-diskio\-show\-ramfs show RAM Fs in the disk IO plugin .TP .B \-\-fahrenheit @@ -302,6 +305,9 @@ Enable/disable the quick look module .B 4 Enable/disable all but quick look and load module .TP +.B 5 +Enable/disable the top menu (QuickLook, CPU, MEM and LOAD) +.TP .B / Switch between short name/command line (processes name) .SH EXAMPLES