summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Raspl <raspl@linux.vnet.ibm.com>2017-03-10 15:40:06 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2017-03-29 13:01:27 +0300
commit184b2d23b057b35fba7fd4049962a897ef0e3f9d (patch)
treebac84a46b31f5eb514288408cb5f6882f6399e0a /lib
parent692c7f6deb553dde2531102cd10ac17ab61438e4 (diff)
downloadlinux-184b2d23b057b35fba7fd4049962a897ef0e3f9d.tar.xz
tools/kvm_stat: reduce perceived idle time on filter updates
Whenever a user adds a filter, we * redraw the header immediately for a snappy response * print a message indicating to the user that we're busy while the noticeable delay induced by updating all of the stats objects takes place * update the statistics ASAP (i.e. after 0.25s instead of 3s) to be consistent with behavior on startup To do so, we split the Tui's refresh() method to allow for drawing header and stats separately, and trigger a header refresh whenever we are about to do something that takes a while - like updating filters. Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions