summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions-extra.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-19 22:39:39 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-19 22:39:39 -0400
commit3e76397a3718f6ad0bf709da52054e867434cfef (patch)
tree536f960624ecd652153c6edc5267e5d563c058b6 /pts-core/functions/pts-functions-extra.php
parent83b87790c77c30e0c9def0baf38702b9adfeac44 (diff)
downloadphoronix-test-suite-upstream-3e76397a3718f6ad0bf709da52054e867434cfef.tar.gz
phoronix-test-suite-upstream-3e76397a3718f6ad0bf709da52054e867434cfef.tar.xz
phoronix-test-suite-upstream-3e76397a3718f6ad0bf709da52054e867434cfef.zip
pts-core: Support for running a test from a PTS graph file that's
rendered as an SVG and then the user will be prompted with available choices
Diffstat (limited to 'pts-core/functions/pts-functions-extra.php')
-rw-r--r--pts-core/functions/pts-functions-extra.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/pts-core/functions/pts-functions-extra.php b/pts-core/functions/pts-functions-extra.php
index 16d562a..d88ee3c 100644
--- a/pts-core/functions/pts-functions-extra.php
+++ b/pts-core/functions/pts-functions-extra.php
@@ -211,10 +211,7 @@ function pts_estimated_time_string($time)
{
$time_trim = explode(",", $time_trim);
- for($i = 0; $i < count($time_trim); $i++)
- {
- $time_trim[$i] = trim($time_trim[$i]);
- }
+ $time_trim = array_map("trim", $time_trim);
if(count($time_trim) == 2)
{