From 66c08b70517cebda23b76ae157acd33157f836b6 Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 18 Feb 2015 15:48:32 +0100 Subject: [PATCH] improved cpu usage command --- webui/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/config.php b/webui/config.php index 8c8c26b4..c0d03120 100644 --- a/webui/config.php +++ b/webui/config.php @@ -200,7 +200,7 @@ $config['SPHINX_NOTE_INDEX'] = 'note1'; $config['RELOAD_COMMAND'] = 'sudo -n /etc/init.d/rc.piler reload'; $config['PILERIMPORT_IMAP_COMMAND'] = '/usr/local/bin/pilerimport -d /var/piler/imap -q -r'; -$config['CPU_USAGE_COMMAND'] = "LC_ALL=C mpstat | tail -1 | awk '{print $11}'"; +$config['CPU_USAGE_COMMAND'] = "LC_ALL=C mpstat | tail -1 | sed 's/\ \{1,\}/ /g' | rev | cut -d ' ' -f1 | rev"; $config['LDAP_IMPORT_CONFIG_FILE'] = '/usr/local/etc/ldap-import.cfg';