]> granicus.if.org Git - sysstat/commitdiff
sadc -S POWER didn't include voltage inputs statistics.
authorSebastien Godard <sysstat@orange.fr>
Sun, 24 Oct 2010 19:38:41 +0000 (21:38 +0200)
committerSebastien Godard <sysstat@orange.fr>
Sun, 24 Oct 2010 19:38:41 +0000 (21:38 +0200)
Voltage input statistics was not included in the POWER statistics
group for sadc. This is now fixed.

CHANGES
sadc.c

diff --git a/CHANGES b/CHANGES
index fc6eb821ab3d227474ae45b6f6ee50e8119465e0..ecd74635af18ebe06abaf185db40bb4260c3c8f5 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,8 @@ xxxx/xx/xx: Version 9.1.6 - Sebastien Godard (sysstat <at> orange.fr)
        * Added hugepages utilization statistics to sar and sadc.
        * Fixed some differences between XML output (as displayed by
          sadf -x) and DTD document.
+       * sadc -S POWER didn't include voltage inputs statistics.
+         This is now fixed.
        * [Ivana Varekova]: Moved manual pages to $prefix/share/man
          instead of $prefix/man.
        * [Ivana Varekova]: Fixed configure's --disable-man-group option.
diff --git a/sadc.c b/sadc.c
index ad904ae335a2faab9bd432876ec3bcb3149c2f65..fb2df6f3a601d10cb11b67404aa9578887b30d39 100644 (file)
--- a/sadc.c
+++ b/sadc.c
@@ -139,6 +139,7 @@ void parse_sadc_S_option(char *argv[], int opt)
                        /* Select activities related to power management */
                        COLLECT_ACTIVITY(A_PWR_CPUFREQ);
                        COLLECT_ACTIVITY(A_PWR_FAN);
+                       COLLECT_ACTIVITY(A_PWR_IN);
                        COLLECT_ACTIVITY(A_PWR_TEMP);
                        COLLECT_ACTIVITY(A_PWR_WGHFREQ);
                }