Update docs for Glances 3.4.0

This commit is contained in:
nicolargo 2023-05-16 09:32:17 +02:00
parent b3a80ab028
commit 1c28d543f2
7 changed files with 339 additions and 421 deletions

View File

@ -40,14 +40,14 @@ test: ## Run unit tests
./venv/bin/python ./unitest-restful.py
./venv/bin/python ./unitest-xmlrpc.py
./venv/bin/python -m black ./glances --check --exclude outputs/static
./venv/bin/pyright glances
# ./venv/bin/pyright glances
test-with-upgrade: venv-upgrade venv-dev-upgrade ## Run unit tests
./venv/bin/python ./unitest.py
./venv/bin/python ./unitest-restful.py
./venv/bin/python ./unitest-xmlrpc.py
./venv/bin/python -m black ./glances --check --exclude outputs/static
./venv/bin/pyright glances
# ./venv/bin/pyright glances
# ===================================================================
# Linters and profilers

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 211 KiB

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "GLANCES" "1" "May 13, 2023" "3.4.0_RC1" "Glances"
.TH "GLANCES" "1" "May 16, 2023" "3.4.0" "Glances"
.SH NAME
glances \- An eye on your system
.SH SYNOPSIS

View File

@ -2,7 +2,7 @@
#
# This file is part of Glances.
#
# SPDX-FileCopyrightText: 2022 Nicolas Hennion <nicolas@nicolargo.com>
# SPDX-FileCopyrightText: 2023 Nicolas Hennion <nicolas@nicolargo.com>
#
# SPDX-License-Identifier: LGPL-3.0-only
#
@ -19,7 +19,7 @@ import sys
# Global name
# Version should start and end with a numerical char
# See https://packaging.python.org/specifications/core-metadata/#version
__version__ = '3.4.0_RC1'
__version__ = '3.4.0'
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
__license__ = 'LGPLv3'

View File

@ -122,7 +122,7 @@ class GlancesStdoutIssue(object):
result = (colors.RED + '[ERROR]' + colors.BLUE + ' {:.5f}s '.format(counter.get())).rjust(
41 - len(plugin)
)
message = colors.NO + str(stat_error)[0: TERMINAL_WIDTH - 41]
message = colors.NO + str(stat_error)[0 : TERMINAL_WIDTH - 41]
# Display the result
self.print_issue(plugin, result, message)

View File

@ -332,9 +332,7 @@ class DockerContainersExtension:
stats['io_w'] = stats['io'].get('iow')
stats['network_rx'] = stats['network'].get('rx')
stats['network_tx'] = stats['network'].get('tx')
stats['Uptime'] = pretty_date(
parser.parse(started_at).astimezone(tz.tzlocal()).replace(tzinfo=None)
)
stats['Uptime'] = pretty_date(parser.parse(started_at).astimezone(tz.tzlocal()).replace(tzinfo=None))
else:
stats['io'] = {}
stats['cpu'] = {}