[llvm-commits] CVS: nightlytest-serverside/NightlyTester.php
Patrick Jenkins
pjenkins at apple.com
Tue Aug 1 13:33:17 PDT 2006
Changes in directory nightlytest-serverside:
NightlyTester.php updated: 1.6 -> 1.7
---
Log message:
Fixed the get_file_history function which returns the size of a file over time
---
Diffs of the changes: (+4 -5)
NightlyTester.php | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
Index: nightlytest-serverside/NightlyTester.php
diff -u nightlytest-serverside/NightlyTester.php:1.6 nightlytest-serverside/NightlyTester.php:1.7
--- nightlytest-serverside/NightlyTester.php:1.6 Wed Jul 26 14:11:15 2006
+++ nightlytest-serverside/NightlyTester.php Tue Aug 1 15:33:01 2006
@@ -155,7 +155,7 @@
*
*****************************************************/
function get_file($mysql_link, $file, $night_id){
- $query = mysql_query("select * from file WHERE $file=\"$file\" and night=$night_id") or die (mysql_error());
+ $query = mysql_query("select * from file WHERE file=\"$file\" and night=$night_id") or die (mysql_error());
$file = mysql_fetch_array($query);
$result = array("{$file['file']}","{$file['size']}","{$file['night']}","{$file['type']}");
mysql_free_result($query);
@@ -179,13 +179,12 @@
$result = array();
while($row = mysql_fetch_array($nights_query)){
$file_select = "select * from file where night={$row['id']} and ".
- "file=\"$file_name\"";
+ "file=\"$file_name\"";
$file_query = mysql_query($file_select);
$file_array = mysql_fetch_array($file_query);
if(isset($file_array['file'])){
- $value=get_file($mysql_link, $file_name, "{$row['id']}");
- array_unshift($value, "{$row['added']}");
- array_push($result, $value);
+ array_unshift($file_array['size'], "{$row['added']}");
+ array_push($result, $file_array['size']);
}//end if
mysql_free_result($file_query);
}//end while
More information about the llvm-commits
mailing list