diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-09 13:13:15 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-08-09 13:13:15 -0400 |
commit | 3f24dbb4b04dba94d898fb99901abdafa18141e7 (patch) | |
tree | 0726473aafb2b625a07532f1788719dcd00d81b9 /pts-core/functions/pts-functions_system.php | |
parent | 3b1128439c9eb428f5946679bf148f5cef474c82 (diff) | |
download | phoronix-test-suite-upstream-3f24dbb4b04dba94d898fb99901abdafa18141e7.tar.gz phoronix-test-suite-upstream-3f24dbb4b04dba94d898fb99901abdafa18141e7.tar.xz phoronix-test-suite-upstream-3f24dbb4b04dba94d898fb99901abdafa18141e7.zip |
pts-core: Improve system voltage detection through LM_Sensors
Diffstat (limited to 'pts-core/functions/pts-functions_system.php')
-rw-r--r-- | pts-core/functions/pts-functions_system.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system.php b/pts-core/functions/pts-functions_system.php index 6df4e17..7496485 100644 --- a/pts-core/functions/pts-functions_system.php +++ b/pts-core/functions/pts-functions_system.php @@ -256,11 +256,26 @@ function system_line_voltage($type) if($type == "CPU") $voltage = read_sensors("VCore"); else if($type == "V3") + { $voltage = read_sensors("V3.3"); + + if(empty($voltage)) + $voltage = read_sensors("+3.3V"); + } else if($type == "V5") + { $voltage = read_sensors("V5"); + + if(empty($voltage)) + $voltage = read_sensors("+5V"); + } else if($type == "V12") + { $voltage = read_sensors("V12"); + + if(empty($voltage)) + $voltage = read_sensors("+12V"); + } else $voltage = ""; |