[llvm-commits] CVS: nightlytest-serverside/NightlyTester.php

Patrick Jenkins pjenkins at apple.com
Tue Aug 1 13:41:51 PDT 2006



Changes in directory nightlytest-serverside:

NightlyTester.php updated: 1.8 -> 1.9
---
Log message:

Changed get_file_history to return an array of data that makes sense


---
Diffs of the changes:  (+4 -4)

 NightlyTester.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: nightlytest-serverside/NightlyTester.php
diff -u nightlytest-serverside/NightlyTester.php:1.8 nightlytest-serverside/NightlyTester.php:1.9
--- nightlytest-serverside/NightlyTester.php:1.8	Tue Aug  1 15:36:16 2006
+++ nightlytest-serverside/NightlyTester.php	Tue Aug  1 15:41:37 2006
@@ -168,7 +168,7 @@
  * particular machine for a specific file
  * Returns: an array with the key being the date and
  * the value being an array containing file name, size
- * night, and build type
+ * and build type
  *
  *****************************************************/
 function get_file_history($mysql_link, $machine_id, $file_name){
@@ -183,9 +183,9 @@
 		$file_query = mysql_query($file_select);
 		$file_array = mysql_fetch_array($file_query);
 		if(isset($file_array['file'])){
-          $file_array['size']=array();
-		  array_unshift($file_array['size'], "{$row['added']}");
-		  array_push($result, $file_array['size']);
+		  $result["{$file_array['night']}"]=array("{$file_array[['file']}",
+		  										  "{$file_array[['size']}",
+		  										  "{$file_array[['type']}"));
 		}//end if
 		mysql_free_result($file_query);
 	}//end while






More information about the llvm-commits mailing list