Global: add missing changes

This commit is contained in:
李通洲 2023-11-05 13:24:09 +08:00
parent c3352d6d28
commit 3b319f0a1e
No known key found for this signature in database
GPG Key ID: 269AD4F5325A22A3
3 changed files with 5 additions and 5 deletions

View File

@ -415,7 +415,7 @@
"description": "Set the percentage output type. 1 for percentage number, 2 for bar, 3 for both, 6 for bar only, 9 for colored number",
"minimum": 0,
"maximum": 255,
"default": 1
"default": 9
},
"ndigits": {
"type": "number",

View File

@ -74,7 +74,7 @@ Display options:
--disable-linewrap <?value>: Whether to disable line wrap during the run
--hide-cursor <?value>: Whether to hide the cursor during the run
--binary-prefix <value>: Set the binary prefix to used. Must be IEC, SI or JEDEC. Default is IEC
--percent-type <value>: Set the percentage output type. 1 for percentage number, 2 for bar, 3 for both, 6 for bar only, 9 for colored number. Default is 1
--percent-type <value>: Set the percentage output type. 1 for percentage number, 2 for bar, 3 for both, 6 for bar only, 9 for colored number. Default is 9
--percent-ndigits <value>: Set the number of digits to keep after the decimal point when formatting percentage numbers. Default is 0
--bar-char-elapsed <str>: Set the character to use in elapsed part. Default is '■'
--bar-char-total <str>: Set the character to use in total part. Default is '-'

View File

@ -45,13 +45,13 @@ int main(void)
ffPrintMemory(&options->memory);
ffPrintSwap(&options->swap);
ffPrintDisk(&options->disk);
ffPrintLocalIp(&options->localIP);
// ffPrintPublicIp(&options->publicIP);
//ffPrintWifi(&options->wifi);
ffPrintBattery(&options->battery);
ffPrintPowerAdapter(&options->powerAdapter);
//ffPrintPlayer(&options->player);
//ffPrintMedia(&options->media);
//ffPrintLocalIp(&options->localIp);
//ffPrintPublicIp(&options->publicIp);
//ffPrintWifi(&options->wifi);
//ffPrintCPUUsage(&options->cpuUsage);
ffPrintLocale(&options->locale);
//ffPrintDateTime(&options->dateTime);