=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/file.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- src/usr.bin/aucat/Attic/file.c 2011/06/27 07:22:00 1.27 +++ src/usr.bin/aucat/Attic/file.c 2011/10/12 07:20:04 1.28 @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.27 2011/06/27 07:22:00 ratchov Exp $ */ +/* $OpenBSD: file.c,v 1.28 2011/10/12 07:20:04 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -369,17 +369,16 @@ delta_nsec = 1000000000LL * (ts.tv_sec - file_ts.tv_sec); delta_nsec += ts.tv_nsec - file_ts.tv_nsec; #ifdef DEBUG - if (delta_nsec < 0) { + if (delta_nsec < 0) dbg_puts("file_poll: negative time interval\n"); - dbg_panic(); - } #endif file_ts = ts; - if (delta_nsec < 1000000000LL) + if (delta_nsec >= 0 && delta_nsec < 1000000000LL) timo_update(delta_nsec / 1000); else { #ifdef DEBUG - dbg_puts("ignored huge clock delta\n"); + if (debug_level >= 1) + dbg_puts("ignored huge clock delta\n"); #endif } if (res <= 0)