From ccbb2524661242455b4f2ba4813a6eda230bd4ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 9 Oct 2023 19:24:25 +0800 Subject: [PATCH] DiskIO: update doc and json schema --- doc/json_schema.json | 26 ++++++++++++++++++++++++++ src/data/help.txt | 5 +++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/doc/json_schema.json b/doc/json_schema.json index 910192a9b..05b16dbbd 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -545,6 +545,7 @@ "datetime", "display", "disk", + "diskio", "de", "font", "gamepad", @@ -932,6 +933,31 @@ }, "additionalProperties": false }, + { + "title": "Physical disk throughput (usage)", + "properties": { + "type": { + "const": "diskio" + }, + "namePrefix": { + "title": "Show disks with given name prefix only", + "type": "string" + }, + "key": { + "$ref": "#/$defs/key" + }, + "keyColor": { + "$ref": "#/$defs/keyColor" + }, + "keyWidth": { + "$ref": "#/$defs/keyWidth" + }, + "format": { + "$ref": "#/$defs/format" + } + }, + "additionalProperties": false + }, { "title": "GPU", "properties": { diff --git a/src/data/help.txt b/src/data/help.txt index 440ff9aa4..154dd7a0e 100644 --- a/src/data/help.txt +++ b/src/data/help.txt @@ -132,6 +132,7 @@ Module specific options: --disk-show-readonly : Set if read only volumes should be printed. Default is false --disk-show-unknown : Set if unknown (unable to detect sizes) volumes should be printed. Default is false --disk-use-available : Use f_bavail (lpFreeBytesAvailableToCaller for Windows) instead of f_bfree to calculate used bytes. Default is false + --diskio-name-prefix : Show disks with given name prefix only. Default is empty --bluetooth-show-disconnected: : Set if disconnected bluetooth devices should be printed. Default is false --display-compact-type: : Set if all displays should be printed in one line. Default is none --display-detect-name: : Set if display name should be detected and printed (if supported). Default is false @@ -151,8 +152,8 @@ Module specific options: --localip-name-prefix : Show interfaces with given interface name prefix only. Default is empty --localip-default-route-only : Show the interface that is used for default routing only. Default is false --localip-compact : Show all IPs in one line. Default is false - --netio-name-prefix : Show interfaces with given name prefix only. Default is empty - --netio-default-route-only : Show the interfac that is used for default routing only. Default is false + --netio-name-prefix : Show interfaces with given name prefix only. Default is empty + --netio-default-route-only : Show the interfac that is used for default routing only. Default is false --publicip-timeout: Time in milliseconds to wait for the public ip server to respond. Default is disabled (0) --publicip-url: The URL of public IP detection server to be used. --weather-location: Set the location to be used. It must be URI encoded (eg a whitespace must be encoded as `+`).