[Mixmaster-devel] r857 - trunk/Mix2.0/Src
Brought to you by:
weaselp
|
From: <ra...@so...> - 2004-05-17 15:59:08
|
Author: rabbi
Date: 2004-05-17 17:59:03 +0200 (Mon, 17 May 2004)
New Revision: 857
Modified:
trunk/Mix2.0/Src/type2.c
trunk/Mix2.0/Src/version.h
Log:
Drop messages without timestamps, and drop future timestamps.
FIXME -- add "slop room" for arma's african clocks.
Modified: trunk/Mix2.0/Src/type2.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/Mix2.0/Src/type2.c 2004-05-17 15:30:39 UTC (rev 856)
+++ trunk/Mix2.0/Src/type2.c 2004-05-17 15:59:03 UTC (rev 857)
@@ -354,6 +354,18 @@
now =3D time (NULL);
=20
then =3D (timestamp[0] + 256 * timestamp[1]) * SECONDSPERDAY;
+ if (then =3D=3D 0)
+ {
+ if (VERBOSE)
+ fprintf(errlog, "Ignoring message without timestamp.\n");
+ return(0);
+ }
+ if (then > now)
+ {
+ if (VERBOSE)
+ fprintf(errlog, "Ignoring message with future timestamp.\n");
+ return (0);
+ }
if (then > 0 && now - then > IDEXP * 3600)
{
if (VERBOSE)
Modified: trunk/Mix2.0/Src/version.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/Mix2.0/Src/version.h 2004-05-17 15:30:39 UTC (rev 856)
+++ trunk/Mix2.0/Src/version.h 2004-05-17 15:59:03 UTC (rev 857)
@@ -1 +1 @@
-char VERSION[] =3D "2.0.4b46";
+char VERSION[] =3D "2.0.5";
|