bugfix for neg. times
Stefan Schuermans

Stefan Schuermans commited on 2017-09-24 10:45:58
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -164,7 +164,7 @@ time_t Time::toSec() const
164 164
 {
165 165
   if (m_ns >= 500000000)
166 166
     return m_sec + 1;
167
-  else if (m_ns <= 500000000)
167
+  else if (m_ns <= -500000000)
168 168
     return m_sec - 1;
169 169
   else
170 170
     return m_sec;
171 171