Index: trunk/tools/rotatebot/rotbot.php |
— | — | @@ -773,7 +773,7 @@ |
774 | 774 | } |
775 | 775 | |
776 | 776 | mysql_close($myslink); // TODO should/can this be moved to function suicide? - Probably not due to line 33. |
777 | | -suicide ("Bot finished."); |
| 777 | +suicide ("Bot finished.\n"); |
778 | 778 | // END script |
779 | 779 | |
780 | 780 | |
Index: trunk/tools/rotatebot/upload.php |
— | — | @@ -118,8 +118,11 @@ |
119 | 119 | } |
120 | 120 | $dc += strlen($bo)+3; |
121 | 121 | fputs($fp, "Content-length: $dc \n"); |
| 122 | + logfile( "Content-length: $dc" ); |
122 | 123 | fputs($fp, "\n"); |
123 | 124 | |
| 125 | + $startTime = time(); |
| 126 | + |
124 | 127 | foreach($data_l as $key=>$val) |
125 | 128 | { |
126 | 129 | if ($key == "file.file") |
— | — | @@ -142,6 +145,9 @@ |
143 | 146 | $res .= fread($fp, 1); |
144 | 147 | } |
145 | 148 | fclose($fp); |
| 149 | + $endTime = time(); |
| 150 | + $diff = $endTime - $startTime; |
| 151 | + logfile( "Time taken: " . intval($diff) . " seconds" ); |
146 | 152 | global $homedir; |
147 | 153 | file_put_contents( $homedir . "cache/log.txt",$res); |
148 | 154 | return $res; |