You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/06/09 21:52:29 UTC

[trafficserver] branch 9.0.x updated: Fix typo in system stats, change loadavg 10min to be 15min (#6608)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 01de2e3  Fix typo in system stats, change loadavg 10min to be 15min (#6608)
01de2e3 is described below

commit 01de2e39d62cd23276f90227dab2a49fd5ce614d
Author: Evan Zelkowitz <ez...@apache.org>
AuthorDate: Thu Apr 2 13:11:49 2020 -0700

    Fix typo in system stats, change loadavg 10min to be 15min (#6608)
    
    (cherry picked from commit 3b25feed5ca271d9eba6e4fdc86a5845935ef911)
---
 plugins/experimental/system_stats/system_stats.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/experimental/system_stats/system_stats.c b/plugins/experimental/system_stats/system_stats.c
index d263eac..c4f2588 100644
--- a/plugins/experimental/system_stats/system_stats.c
+++ b/plugins/experimental/system_stats/system_stats.c
@@ -49,7 +49,7 @@
 // Load Average Strings
 #define LOAD_AVG_ONE_MIN "plugin." PLUGIN_NAME ".loadavg.one"
 #define LOAD_AVG_FIVE_MIN "plugin." PLUGIN_NAME ".loadavg.five"
-#define LOAD_AVG_TEN_MIN "plugin." PLUGIN_NAME ".loadavg.ten"
+#define LOAD_AVG_FIFTEEN_MIN "plugin." PLUGIN_NAME ".loadavg.fifteen"
 
 // Process Strings
 #define CURRENT_PROCESSES "plugin." PLUGIN_NAME ".current_processes"
@@ -206,7 +206,7 @@ getStats(TSMutex stat_creation_mutex)
 
   statSet(LOAD_AVG_ONE_MIN, info.loads[0], stat_creation_mutex);
   statSet(LOAD_AVG_FIVE_MIN, info.loads[1], stat_creation_mutex);
-  statSet(LOAD_AVG_TEN_MIN, info.loads[2], stat_creation_mutex);
+  statSet(LOAD_AVG_FIFTEEN_MIN, info.loads[2], stat_creation_mutex);
   statSet(CURRENT_PROCESSES, info.procs, stat_creation_mutex);
 #endif // #ifdef HAVE_SYS_SYSINFO_H
   netStatsInfo(stat_creation_mutex);