summaryrefslogtreecommitdiffstats
path: root/pts-core
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-12-27 17:07:41 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-12-27 17:07:41 -0500
commit9094d2b216723bdf20f3c1e3bae7377bfbfc2f56 (patch)
tree41d062992f256fe95ada08fac4e6bd62d1ba30a0 /pts-core
parentdb10a1eb1fb1da87d1403b7c9b6658b880ca5d1b (diff)
downloadphoronix-test-suite-upstream-9094d2b216723bdf20f3c1e3bae7377bfbfc2f56.tar.gz
phoronix-test-suite-upstream-9094d2b216723bdf20f3c1e3bae7377bfbfc2f56.tar.xz
phoronix-test-suite-upstream-9094d2b216723bdf20f3c1e3bae7377bfbfc2f56.zip
pts-core: Plot results in reverse order when graphing results if
REVERSE_GRAPH_PLOTTING environmental variable is set
Diffstat (limited to 'pts-core')
-rw-r--r--pts-core/functions/pts-functions_tests.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php
index 61ec7bc..3dd5cd5 100644
--- a/pts-core/functions/pts-functions_tests.php
+++ b/pts-core/functions/pts-functions_tests.php
@@ -123,6 +123,12 @@ function pts_save_result($save_to = null, $save_results = null)
$t = new pts_BarGraph($results_name[$i], $results_attributes[$i], $results_scale[$i]);
}
+ if(getenv("REVERSE_GRAPH_PLOTTING") != false)
+ {
+ $results_identifiers[$i] = array_reverse($results_identifiers[$i]);
+ $results_values[$i] = array_reverse($results_values[$i]);
+ }
+
$t->loadGraphIdentifiers($results_identifiers[$i]);
$t->loadGraphValues($results_values[$i]);
$t->loadGraphRawValues($results_rawvalues[$i]);