Commit a7f05e08 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(timerdiff): The tv_usec part of the timeval is ignore. Added a

	comment documenting that that is OK.
parent 41c25bf3
/*
* $Id: dbck-cache.c,v 0.46 1999/07/05 21:14:57 ceder Exp $
* $Id: dbck-cache.c,v 0.47 2001/10/26 19:58:31 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -39,7 +39,7 @@
static const char *
rcsid = "$Id: dbck-cache.c,v 0.46 1999/07/05 21:14:57 ceder Exp $";
rcsid = "$Id: dbck-cache.c,v 0.47 2001/10/26 19:58:31 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -574,6 +574,7 @@ static long
timerdiff(struct timeval a,
struct timeval b)
{
/* Ignore the tv_usec parts. One second more or less doesn't matter. */
return a.tv_sec - b.tv_sec;
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment