diff options
author | Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> | 2024-05-14 01:56:59 +0530 |
---|---|---|
committer | Bharath Vignesh J K <52282402+RazCrimson@users.noreply.github.com> | 2024-05-14 01:56:59 +0530 |
commit | 2d744121d16edb7d80c3ba84c2e26c703988a7f6 (patch) | |
tree | 8ed0dfb9129bddd9b5dfd8191c8954399e5a9a48 | |
parent | 84a511c7162f19275d48444888ca075ce7603095 (diff) |
version 4.0.2v4.0.2
-rw-r--r-- | NEWS.rst | 5 | ||||
-rw-r--r-- | docs/api.rst | 30 | ||||
-rwxr-xr-x[-rw-r--r--] | docs/man/glances.1 | 2 | ||||
-rw-r--r-- | glances/__init__.py | 2 | ||||
-rw-r--r-- | snap/snapcraft.yaml | 2 |
5 files changed, 34 insertions, 7 deletions
@@ -2,6 +2,11 @@ Glances ChangeLog ============================================================================== +=============== +Version 4.0.2 +=============== + +Fix: Sensor plugin buggy due to race conditions. =============== Version 4.0.1 diff --git a/docs/api.rst b/docs/api.rst index 75ca6da1..be7c883a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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: @@ -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 -------- @@ -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: @@ -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 ---------- @@ -1058,7 +1080,7 @@ GET version Get plugin stats:: # curl http://localhost:61208/api/4/version - "4.0.1" + "4.0.2" GET wifi -------- diff --git a/docs/man/glances.1 b/docs/man/glances.1 index c41b03d3..3a6d6a53 100644..100755 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -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 diff --git a/glances/__init__.py b/glances/__init__.py index 1ba30987..094532a7 100644 --- a/glances/__init__.py +++ b/glances/__init__.py @@ -20,7 +20,7 @@ import sys # 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' diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e308d8ee..23436fe8 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -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: | |