diff --git a/docs/_static/sparkline.png b/docs/_static/sparkline.png new file mode 100644 index 0000000000000000000000000000000000000000..6a44eded033a16966be0bedaaaa8d054ace307df Binary files /dev/null and b/docs/_static/sparkline.png differ diff --git a/docs/aoa/quicklook.rst b/docs/aoa/quicklook.rst index d4e6c74ff45ce0c07145d007b3ca04bc1f5f141b..3b2d0fa04ae469db9e1cda72347f9a75e9123b37 100644 --- a/docs/aoa/quicklook.rst +++ b/docs/aoa/quicklook.rst @@ -12,6 +12,13 @@ If the per CPU mode is on (by clicking the ``1`` key): .. image:: ../_static/quicklook-percpu.png +In the Curses/terminal interface, it is also possible to switch from bar to +sparkline using 'S' hot key or --sparkline command line option. Please be +aware that sparklines use the Glances history and will not be available +if the history is disabled from the command line. + +.. image:: ../_static/sparkline.png + .. note:: Limit values can be overwritten in the configuration file under the ``[quicklook]`` section. diff --git a/docs/man/glances.1 b/docs/man/glances.1 index 2d3b7538519e5c5577bf74d39d92e38219440500..1ffed86b962326990d06e5d938030c9f4ac4473f 100644 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -303,6 +303,11 @@ display FS free space instead of used .UNINDENT .INDENT 0.0 .TP +.B \-\-sparkline +display sparlines instead of bar in the curses interface +.UNINDENT +.INDENT 0.0 +.TP .B \-\-theme\-white optimize display colors for white background .UNINDENT @@ -422,6 +427,9 @@ Show/hide RAID plugin .B \fBs\fP Show/hide sensors stats .TP +.B \fBS\fP +Switch from bars to sparklines +.TP .B \fBt\fP Sort process by CPU times (TIME+) .TP diff --git a/glances/main.py b/glances/main.py index 6d16858a749b601e517cb7c44aa04b32f7385728..ad55b82a1c3e84d8907b439211b094cd474ec115 100644 --- a/glances/main.py +++ b/glances/main.py @@ -241,7 +241,7 @@ Examples of use: parser.add_argument('--fs-free-space', action='store_true', default=False, dest='fs_free_space', help='display FS free space instead of used') parser.add_argument('--sparkline', action='store_true', default=False, - dest='sparkline', help='displat sparklines instead of bar in the curses interface') + dest='sparkline', help='display sparklines instead of bar in the curses interface') parser.add_argument('--theme-white', action='store_true', default=False, dest='theme_white', help='optimize display colors for white background') # Globals options