mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-03 07:03:40 +03:00
Merge branch 'develop' of https://github.com/nicolargo/glances into issue1105
This commit is contained in:
commit
43aeb4f2e7
@ -235,8 +235,7 @@ Homebrew
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ brew install python
|
||||
$ pip install glances
|
||||
$ brew install glances
|
||||
|
||||
MacPorts
|
||||
````````
|
||||
|
@ -2,7 +2,7 @@
|
||||
#
|
||||
# This file is part of Glances.
|
||||
#
|
||||
# Copyright (C) 2017 Nicolargo <nicolas@nicolargo.com>
|
||||
# Copyright (C) 2018 Nicolargo <nicolas@nicolargo.com>
|
||||
#
|
||||
# Glances is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License as published by
|
||||
@ -527,9 +527,11 @@ class _GlancesCurses(object):
|
||||
# Adapt number of processes to the available space
|
||||
max_processes_displayed = (
|
||||
self.screen.getmaxyx()[0] - 11 -
|
||||
self.get_stats_display_height(__stat_display["alert"]) -
|
||||
self.get_stats_display_height(__stat_display["docker"])
|
||||
)
|
||||
(0 if 'alert' not in __stat_display else
|
||||
self.get_stats_display_height(__stat_display["alert"])) -
|
||||
(0 if 'docker' not in __stat_display else
|
||||
self.get_stats_display_height(__stat_display["docker"])))
|
||||
|
||||
try:
|
||||
if self.args.enable_process_extended and not self.args.process_tree:
|
||||
max_processes_displayed -= 4
|
||||
|
Loading…
Reference in New Issue
Block a user