Skip to content

Commit

Permalink
version 4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RazCrimson committed May 13, 2024
1 parent 84a511c commit 2d74412
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
5 changes: 5 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Glances ChangeLog
==============================================================================

===============
Version 4.0.2
===============

Fix: Sensor plugin buggy due to race conditions.

===============
Version 4.0.1
Expand Down
30 changes: 26 additions & 4 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,13 @@ GET gpu
Get plugin stats::

# curl http://localhost:61208/api/4/gpu
[]
[{"fan_speed": 29,
"gpu_id": "nvidia0",
"key": "gpu_id",
"mem": 46.144612630208336,
"name": "NVIDIA GeForce GTX 1060 3GB",
"proc": 2,
"temperature": 57}]

Fields descriptions:

Expand All @@ -488,6 +494,22 @@ Fields descriptions:
* **temperature**: GPU temperature (unit is *celsius*)
* **fan_speed**: GPU fan speed (unit is *roundperminute*)

Get a specific field::

# curl http://localhost:61208/api/4/gpu/gpu_id
{"gpu_id": ["nvidia0"]}

Get a specific item when field matches the given value::

# curl http://localhost:61208/api/4/gpu/gpu_id/nvidia0
{"nvidia0": [{"fan_speed": 29,
"gpu_id": "nvidia0",
"key": "gpu_id",
"mem": 46.144612630208336,
"name": "NVIDIA GeForce GTX 1060 3GB",
"proc": 2,
"temperature": 57}]}

GET help
--------

Expand Down Expand Up @@ -701,7 +723,7 @@ GET now
Get plugin stats::

# curl http://localhost:61208/api/4/now
{"custom": "2024-05-12 19:00:51 CEST", "iso": "2024-05-12T19:00:51+02:00"}
{"custom": "2024-05-14 01:49:24 IST", "iso": "2024-05-14T01:49:24+05:30"}

Fields descriptions:

Expand All @@ -711,7 +733,7 @@ Fields descriptions:
Get a specific field::

# curl http://localhost:61208/api/4/now/iso
{"iso": "2024-05-12T19:00:51+02:00"}
{"iso": "2024-05-14T01:49:24+05:30"}

GET percpu
----------
Expand Down Expand Up @@ -1058,7 +1080,7 @@ GET version
Get plugin stats::

# curl http://localhost:61208/api/4/version
"4.0.1"
"4.0.2"

GET wifi
--------
Expand Down
2 changes: 1 addition & 1 deletion docs/man/glances.1
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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 12, 2024" "4.0.1" "Glances"
.TH "GLANCES" "1" "May 14, 2024" "4.0.2" "Glances"
.SH NAME
glances \- An eye on your system
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion glances/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Global name
# Version should start and end with a numerical char
# See https://packaging.python.org/specifications/core-metadata/#version
__version__ = '4.0.1'
__version__ = '4.0.2'
__apiversion__ = '4'
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
__license__ = 'LGPLv3'
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: glances
version: '4.0.1'
version: '4.0.2'

summary: Glances an Eye on your system. A top/htop alternative.
description: |
Expand Down

0 comments on commit 2d74412

Please sign in to comment.