[Positioning] Timestamp: update operator bool()

Test tv_sec and tv_usec independently instead of using operator
uint64_t().
This commit is contained in:
Matteo Cypriani 2011-04-26 14:14:01 +02:00
parent 810a29cec3
commit a54b8ab06b
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ inline bool Timestamp::operator>=(const uint64_t source) const
inline Timestamp::operator bool() const
{
return static_cast<uint64_t>(*this) > 0 ;
return timestamp.tv_sec > 0 || timestamp.tv_nsec > 0 ;
}