diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-29 22:14:48 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-29 22:14:48 -0500 |
commit | 3149b8438d52c636702d299f3295ef3322bcf0fb (patch) | |
tree | c08dfc9e30a71b6c92f73b307f44c4b8e52a4fd0 /pts-core/functions/pts-functions_tests.php | |
parent | c1be6c5899788af2b706dc8899d31c1e29322e2d (diff) | |
download | phoronix-test-suite-upstream-3149b8438d52c636702d299f3295ef3322bcf0fb.tar.gz phoronix-test-suite-upstream-3149b8438d52c636702d299f3295ef3322bcf0fb.tar.xz phoronix-test-suite-upstream-3149b8438d52c636702d299f3295ef3322bcf0fb.zip |
pts-core: Remove DownloadSize tag that was deprecated from the test
profiles since PTS 1.4
Diffstat (limited to 'pts-core/functions/pts-functions_tests.php')
-rw-r--r-- | pts-core/functions/pts-functions_tests.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/pts-core/functions/pts-functions_tests.php b/pts-core/functions/pts-functions_tests.php index bd4e270..f96aae0 100644 --- a/pts-core/functions/pts-functions_tests.php +++ b/pts-core/functions/pts-functions_tests.php @@ -433,20 +433,10 @@ function pts_estimated_download_size($identifier) $estimated_size = 0; foreach(pts_contained_tests($identifier, true) as $test) { - $xml_parser = new pts_test_tandem_XmlReader(pts_location_test($test)); - $this_size = $xml_parser->getXMLValue(P_TEST_DOWNLOADSIZE); // TODO: The DownloadSize tag has been deprecates as of Phoronix Test Suite 1.4.0 - - if(!empty($this_size) && is_numeric($this_size)) - { - $estimated_size += $this_size; - } - else + // The work for calculating the download size in 1.4.0+ + foreach(pts_objects_test_downloads($test) as $download_object) { - // The work for calculating the download size in 1.4.0+ - foreach(pts_objects_test_downloads($test) as $download_object) - { - $estimated_size += pts_trim_double($download_object->get_filesize() / 1048576); - } + $estimated_size += pts_trim_double($download_object->get_filesize() / 1048576); } } |