[llvm-commits] CVS: nightlytest-serverside/NightlyTester.php
Patrick Jenkins
pjenkins at apple.com
Wed Aug 2 16:30:14 PDT 2006
Changes in directory nightlytest-serverside:
NightlyTester.php updated: 1.13 -> 1.14
---
Log message:
When we build the arrays of file sizes, we now include differences in bytes and % differences
---
Diffs of the changes: (+6 -4)
NightlyTester.php | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Index: nightlytest-serverside/NightlyTester.php
diff -u nightlytest-serverside/NightlyTester.php:1.13 nightlytest-serverside/NightlyTester.php:1.14
--- nightlytest-serverside/NightlyTester.php:1.13 Wed Aug 2 17:10:20 2006
+++ nightlytest-serverside/NightlyTester.php Wed Aug 2 18:29:59 2006
@@ -234,12 +234,11 @@
$prev_sum=0;
$old_sum=0;
-#$delta = round($today_results["$x"][$y] - $yesterday_results["$x"][$y],2);
-
foreach (array_keys($cur_data) as $file){
$cur_sum+=$cur_data["$file"];
if(isset($prev_night["$file"]) && isset($cur_night["$file"])) {
+ $prev_delta= ( $cur_data["$file"] - $prev_data["$file"] );
$prev_diff = (($cur_data["$file"] - $prev_data["$file"]) / $prev_data["$file"] ) * 100;
$prev_sum+=$prev_data["$file"];
} else {
@@ -247,28 +246,31 @@
}
if(isset($old_night["$file"]) && isset($cur_data["$file"])){
+ $old_delta= ( $cur_data["$file"] - $old_data["$file"] );
$old_diff = (($cur_data["$file"] - $old_data["$file"]) / $old_data["$file"] ) * 100;
$old_sum+=$old_data["$file"];
} else {
$old_diff = "-";
}
- $result["$file"]=array($cur_data["$file"], round($prev_diff,2), round($old_diff,2));
+ $result["$file"]=array($cur_data["$file"], round($prev_diff,2), $prev_delta, round($old_diff,2), $old_delta);
}
if($old_sum>0){
+ $old_delta = ($cur_sum - $old_sum);
$old_diff = (($cur_sum - $old_sum) / $old_sum ) * 100;
} else{
$old_diff="-";
}
if($prev_sum>0){
+ $prev_delta = ($cur_sum - $prev_sum);
$prev_diff = (($cur_sum - $prev_sum) / $prev_sum ) * 100;
} else{
$prev_diff="-";
}
- $result["Total Sum"] = array($cur_sum, round($prev_diff,2), round($old_diff,2));
+ $result["Total Sum"] = array($cur_sum, round($prev_diff,2), $prev_delta, round($old_diff,2), $old_delta);
return $result;
}
More information about the llvm-commits
mailing list