Top: reduces waitTime to 250ms

This commit is contained in:
李通洲
2026-09-20 11:24:25 +08:00
parent 15e4bc998a
commit 67da836a27
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -8,6 +8,8 @@ Changes:
* `--logo-cache true` (the default) reuses a cached rendering when it is valid, and writes it back on a cache miss; `false` ignores the image logo cache completely, reading nothing from it and writing nothing to it; `regen` does what `--logo-recache true` used to do. `logo.cache` accepts a boolean, or the string `"regen"`.
* The `waitTime` option of `DiskIO` and `NetIO` now defaults to `250` ms instead of `500`. (DiskIO / NetIO)
* The byte counters are maintained by the kernel as I/O happens, so a shorter sampling window still yields an accurate rate, and both modules now finish about 250 ms sooner. The two modules wait concurrently, so enabling both does not cost twice the wait time.
* The `waitTime` option of `Top` now defaults to `250` ms instead of `500`. (Top)
* The operating system accounts process CPU time in fixed steps, so a window longer than roughly 150 ms does not visibly improve the reported percentages. The module now finishes about 250 ms sooner.
Features:
* Improved image logo support
+1 -1
View File
@@ -4513,7 +4513,7 @@
"type": "integer",
"description": "Wait time between process samples, in milliseconds. Ignored when showTypes contains \"memory\" only",
"minimum": 1,
"default": 500
"default": 250
},
"compact": {
"type": "boolean",
+1 -1
View File
@@ -252,7 +252,7 @@ void ffInitTopOptions(FFTopOptions* options) {
#endif
;
options->nProcesses = 5;
options->waitTime = 500;
options->waitTime = 250;
options->compact = false;
options->percent = (FFPercentageModuleConfig){ 50, 80, 0 };
}