OSDN Git Service
(root)
/
epgrec
/
epgrec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02079c9
)
modified: sendstream.php
author
yoneda
<yoneda@recorder.localnet.mda.or.jp>
Sat, 1 Aug 2009 11:45:29 +0000
(20:45 +0900)
committer
yoneda
<yoneda@recorder.localnet.mda.or.jp>
Sat, 1 Aug 2009 11:45:29 +0000
(20:45 +0900)
sendstream.php
patch
|
blob
|
history
diff --git
a/sendstream.php
b/sendstream.php
index
c8f5ce7
..
593504d
100755
(executable)
--- a/
sendstream.php
+++ b/
sendstream.php
@@
-38,16
+38,14
@@
try{
do {
$start = microtime(true);
if( feof( $fp ) ) break;
-
echo fread( $fp, 6292 );
-
- usleep( 2000 - (int)((microtime(true) - $start) * 1000) );
+ @usleep( 2000 - (int)((microtime(true) - $start) * 1000 * 1000));
}
- while(
! connection_aborted()
);
+ while(
connection_aborted() == 0
);
}
fclose($fp);
}
catch(exception $e ) {
exit( $e->getMessage() );
}
-?>
\ No newline at end of file
+?>