[llvm-commits] CVS: nightlytest-serverside/test.php fulltest.php
Patrick Jenkins
pjenkins at apple.com
Thu Aug 3 10:05:54 PDT 2006
Changes in directory nightlytest-serverside:
test.php updated: 1.12 -> 1.13
fulltest.php updated: 1.9 -> 1.10
---
Log message:
Fixed the coloring of cells in teh file size information table, also formatted the sum total size of the files so it is easily readable.
---
Diffs of the changes: (+12 -22)
fulltest.php | 9 +++++----
test.php | 25 +++++++------------------
2 files changed, 12 insertions(+), 22 deletions(-)
Index: nightlytest-serverside/test.php
diff -u nightlytest-serverside/test.php:1.12 nightlytest-serverside/test.php:1.13
--- nightlytest-serverside/test.php:1.12 Wed Aug 2 18:37:08 2006
+++ nightlytest-serverside/test.php Thu Aug 3 12:05:39 2006
@@ -494,9 +494,10 @@
$all_data=buildFileSizeTable($mysql_link, $machine_id, $night_id);
-print "<b>Total size</b>: {$all_data['Total Sum'][0]} bytes<br>\n";
-print "<b>Difference from previous test</b>: {$all_data['Total Sum'][1]}<br>\n";
-print "<b>Difference from five tests ago</b>: {$all_data['Total Sum'][2]}<br><br>\n";
+$unformatted_num=number_format($all_data['Total Sum'][0],0,".",",");
+print "<b>Total size</b>: $unformatted_num bytes<br>\n";
+print "<b>Percent difference from previous test</b>: {$all_data['Total Sum'][1]}<br>\n";
+print "<b>Percent difference from five tests ago</b>: {$all_data['Total Sum'][2]}<br><br>\n";
print "<table class=\"sortable\" id=\"file_sizes\" border=1 cellspacing=0 cellpadding=6>\n";
print "\t<tr>\n";
@@ -517,7 +518,7 @@
print "\t</tr>\n";
foreach (array_keys($all_data) as $d){
- if($all_data["$d"][1]!=0 || $all_data["$d"][2]!=0){
+ if($all_data["$d"][1]!=0 || $all_data["$d"][3]!=0){
print "\t<tr>\n";
if(strcmp($d, "Total Sum")!=0){
print "\t\t<td><input type=checkbox name=files[] multiple=\"multiple\" value=\"$d\">\n";
@@ -528,23 +529,11 @@
print "\t\t$d</td>\n";
print "\t\t<td>{$all_data["$d"][0]}</td>\n";
- if($all_data["$d"][1]!=0){
- $color="bgcolor=";
- $color.=DetermineColor($all_data["$d"][1], "\"\"");
- }
- else{
- $color="";
- }
+ $color="bgcolor=\"".DetermineColor($all_data["$d"][1], "")."\"";
print "\t\t<td $color>{$all_data["$d"][1]}</td>\n";
print "\t\t<td $color>{$all_data["$d"][2]}</td>\n";
- if($all_data["$d"][3]!=0){
- $color="bgolor=";
- $color.=DetermineColor($all_data["$d"][3], "white");
- }
- else{
- $color="";
- }
+ $color="bgcolor=\"".DetermineColor($all_data["$d"][3], "")."\"";
print "\t\t<td $color>{$all_data["$d"][3]}</td>\n";
print "\t\t<td $color>{$all_data["$d"][4]}</td>\n";
Index: nightlytest-serverside/fulltest.php
diff -u nightlytest-serverside/fulltest.php:1.9 nightlytest-serverside/fulltest.php:1.10
--- nightlytest-serverside/fulltest.php:1.9 Wed Aug 2 18:30:32 2006
+++ nightlytest-serverside/fulltest.php Thu Aug 3 12:05:39 2006
@@ -481,9 +481,10 @@
$all_data=buildFileSizeTable($mysql_link, $machine_id, $night_id);
-print "<b>Total size</b>: {$all_data['Total Sum'][0]} bytes<br>\n";
-print "<b>Difference from previous test</b>: {$all_data['Total Sum'][1]}<br>\n";
-print "<b>Difference from five tests ago</b>: {$all_data['Total Sum'][2]}<br><br>\n";
+$formatted_num=number_format($all_data['Total Sum'][0],0,".",",");
+print "<b>Total size</b>: $formatted_num bytes<br>\n";
+print "<b>Percent difference from previous test</b>: {$all_data['Total Sum'][1]}<br>\n";
+print "<b>Percent difference from five tests ago</b>: {$all_data['Total Sum'][2]}<br><br>\n";
print "<table class=\"sortable\" id=\"file_sizes\" border=1 cellspacing=0 cellpadding=6>\n";
print "\t<tr>\n";
@@ -504,7 +505,7 @@
print "\t</tr>\n";
foreach (array_keys($all_data) as $d){
- if($all_data["$d"][1]!=0 || $all_data["$d"][2]!=0){
+ if($all_data["$d"][1]!=0 || $all_data["$d"][3]!=0){
print "\t<tr>\n";
if(strcmp($d, "Total Sum")!=0){
print "\t\t<td><input type=checkbox name=files[] multiple=\"multiple\" value=\"$d\">\n";
More information about the llvm-commits
mailing list