On Wed, 25 Jan 2012, Diego Biurrun wrote:
On Wed, Jan 25, 2012 at 01:17:44PM +0100, Diego Biurrun wrote:
On Wed, Jan 25, 2012 at 02:05:27PM +0200, Martin Storsjö wrote:
--- a/tools/pktdumper.c
+++ b/tools/pktdumper.c
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
while (donotquit)
- sleep(60);
+ usleep(60*1000000);
Add spaces around the operator and patch OK.
Ahem, wait, I think you added three zeros too many, usleep() sleeps
for microseconds, not nanoseconds.
sleep takes seconds, usleep takes microseconds, and the conversion factor
is 10^6 == 1000000.
// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel