Change in osmo-trx[master]: Timeval: passed() returns true if time is equal

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Dec 13 13:58:25 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/12279 )

Change subject: Timeval: passed() returns true if time is equal
......................................................................

Timeval: passed() returns true if time is equal

Change-Id: I96a9d26657f85447609693bc6932d218d354b84a
---
M CommonLibs/Timeval.cpp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/CommonLibs/Timeval.cpp b/CommonLibs/Timeval.cpp
index 50ce05d..991e241 100644
--- a/CommonLibs/Timeval.cpp
+++ b/CommonLibs/Timeval.cpp
@@ -57,7 +57,7 @@
 	Timeval nowTime;
 	if (nowTime.mTimeval.tv_sec < mTimeval.tv_sec) return false;
 	if (nowTime.mTimeval.tv_sec > mTimeval.tv_sec) return true;
-	if (nowTime.mTimeval.tv_usec > mTimeval.tv_usec) return true;
+	if (nowTime.mTimeval.tv_usec >= mTimeval.tv_usec) return true;
 	return false;
 }
 

-- 
To view, visit https://gerrit.osmocom.org/12279
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I96a9d26657f85447609693bc6932d218d354b84a
Gerrit-Change-Number: 12279
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181213/2a9578a8/attachment.htm>


More information about the gerrit-log mailing list