From 218b931d2e9aa2a5fa48106fea952a171404cd76 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 10 May 1999 23:43:54 +0000 Subject: [PATCH] ifixed bad assert test --- src/libCom/osiTime.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libCom/osiTime.h b/src/libCom/osiTime.h index 89974ba18..8764c936c 100644 --- a/src/libCom/osiTime.h +++ b/src/libCom/osiTime.h @@ -29,6 +29,9 @@ * * History * $Log$ + * Revision 1.10 1999/05/07 20:34:50 jhill + * fixed operator return type + * * Revision 1.9 1999/05/07 19:12:39 jhill * many improvements to osiTime * @@ -201,8 +204,8 @@ public: long getNSecTruncToLong() const; private: - unsigned long sec; - unsigned long nSec; + unsigned long sec; /* seconds since O000 Jan 1, 1990 */ + unsigned long nSec; /* nanoseconds within second */ static const unsigned epicsEpochSecPast1970; static osiTime osdGetCurrent(); @@ -225,7 +228,7 @@ inline unsigned long osiTime::getNSec() const inline osiTime::osiTime (double t) { - assert (t>0.0); + assert (t>=0.0); this->sec = (unsigned long) t; this->nSec = (unsigned long) ((t-this->sec)*nSecPerSec); }