API response delay (3+ minutes) when VMs are running due to 'virsh domstats' – Suggest adding '--nowait' option #3317

This commit is contained in:
nicolargo 2025-10-18 09:30:55 +02:00
parent 8a748d15e3
commit 8c70a55488
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ from glances.secure import secure_popen
VIRSH_PATH = '/usr/bin/virsh'
VIRSH_VERSION_OPTIONS = 'version'
VIRSH_INFO_OPTIONS = 'list --all'
VIRSH_DOMAIN_STATS_OPTIONS = 'domstats'
VIRSH_DOMAIN_STATS_OPTIONS = 'domstats --nowait'
VIRSH_DOMAIN_TITLE_OPTIONS = 'desc --title'
import_virsh_error_tag = not os.path.exists(VIRSH_PATH) or not os.access(VIRSH_PATH, os.X_OK)