summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-05-28 10:11:14 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-05-28 10:11:14 -0400
commit48943006048e289465edd243dddf0e9335351bdf (patch)
treefab9f1d16871b162112ec8890e6abf4ea778547f
parent72a35ac5581b208a7f89f751fb3574508f55952e (diff)
downloadphoronix-test-suite-upstream-48943006048e289465edd243dddf0e9335351bdf.tar.gz
phoronix-test-suite-upstream-48943006048e289465edd243dddf0e9335351bdf.tar.xz
phoronix-test-suite-upstream-48943006048e289465edd243dddf0e9335351bdf.zip
Trivial fixes...
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php6
-rw-r--r--pts-core/objects/pts_MultiPassFailGraph.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 201a34d..628539e 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -14,11 +14,11 @@ function read_acpi($point, $match)
if(is_file("/proc/acpi" . $point))
{
- $cpuinfo_lines = explode("\n", file_get_contents("/proc/acpi" . $point));
+ $acpi_lines = explode("\n", file_get_contents("/proc/acpi" . $point));
- for($i = 0; $i < count($cpuinfo_lines) && $value == ""; $i++)
+ for($i = 0; $i < count($acpi_lines) && $value == ""; $i++)
{
- $line = explode(": ", $cpuinfo_lines[$i]);
+ $line = explode(": ", $acpi_lines[$i]);
$this_attribute = trim($line[0]);
if(count($line) > 1)
diff --git a/pts-core/objects/pts_MultiPassFailGraph.php b/pts-core/objects/pts_MultiPassFailGraph.php
index c90283d..ca30200 100644
--- a/pts-core/objects/pts_MultiPassFailGraph.php
+++ b/pts-core/objects/pts_MultiPassFailGraph.php
@@ -45,7 +45,7 @@ class pts_MultiPassFailGraph extends pts_CustomGraph
$headings = explode(",", $this->graph_y_title);
$identifiers_width = floor($identifiers_total_width / count($headings));
$headings_font_size = $this->graph_font_size_bars;
- while(($this->return_ttf_string_width($this->find_longest_string($headings), $this->graph_font, $headings_font_size) > ($identifiers_width - 20)) || $this->return_ttf_string_height($this->graph_maximum_value, $this->graph_font, $headings_font_size) > ($line_height - 4))
+ while(($this->return_ttf_string_width($this->find_longest_string($headings), $this->graph_font, $headings_font_size) > ($identifiers_width - 2)) || $this->return_ttf_string_height($this->graph_maximum_value, $this->graph_font, $headings_font_size) > ($line_height - 4))
$headings_font_size -= 0.5;
for($j = 0; $j < count($this->graph_data[0]); $j++)