-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Buffer 'docker stats' text to avoid terminal flickering
This change reduces the flickering of the terminal when running `docker stats` by buffering the formatted stats text and printing it in one write. Should also consume less CPU as we now only have to issue a single syscall to write the stats text to the terminal. Signed-off-by: Giedrius Jonikas <[email protected]>
- Loading branch information
1 parent
aa331e9
commit 0b16070
Showing
1 changed file
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters