Summary
Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04
Recent Commits
>
--git a/CHANGE-LOG b/CHANGE-LOG
index 6a05c00..488dce9 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -3,6 +3,7 @@ PHORONIX TEST SUITE CHANGE-LOG
Phoronix Test Suite (git)
- Add SPECViewPerf 9 profile
+- Add "Total Disk Space" reporting to PTS hardware information
- Add IOzone profile
- Pts-Grapher updates
- Other fixes
diff --git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index 6451215..74fb542 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -275,6 +275,7 @@ function pts_hw_string()
$hw_string = "Processor: " . processor_string() . " (Total Cores: " . cpu_core_count() . "), ";
$hw_string .= "Motherboard Chipset: " . motherboard_chipset_string() . ", ";
$hw_string .= "System Memory: " . memory_mb_capacity() . "MB, ";
+ $hw_string .= "Total Disk Space: " . pts_posix_disk_total() . "GB, ";
$hw_string .= "Graphics: " . graphics_processor_string() . ", ";
$hw_string .= "Screen Resolution: " . current_screen_resolution() . " ";
diff --git a/pts-core/functions/pts-functions_linux.php b/pts-core/functions/pts-functions_linux.php
index 6b5385b..e5b9254 100644
--- a/pts-core/functions/pts-functions_linux.php
+++ b/pts-core/functions/pts-functions_linux.php
@@ -15,6 +15,10 @@ function pts_posix_userhome()
$userinfo = posix_getpwuid(posix_getuid());
return $userinfo["dir"] . '/';
}
+function pts_posix_disk_total()
+{
+ return ceil(disk_total_space("/") / 1073741824);
+}
function cpu_core_count()
{
if(is_file("/proc/cpuinfo"))
<
Copyright © 2010 by Phoronix Media