Change in osmocom-bb[master]: fix time delta calculations in sched_clck.c

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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Aug 17 13:54:32 UTC 2018


Pau Espin Pedrol has posted comments on this change. ( https://gerrit.osmocom.org/10489 )

Change subject: fix time delta calculations in sched_clck.c
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.osmocom.org/#/c/10489/2/src/host/trxcon/sched_clck.c
File src/host/trxcon/sched_clck.c:

https://gerrit.osmocom.org/#/c/10489/2/src/host/trxcon/sched_clck.c@173
PS2, Line 173: 		while (duration.tv_nsec >= 1000000000) {
What about something like this to avoid a loop?
duration.tv_sec = duration.tv_nsec / (1000*1000*1000);
duration.tv_nsec = duration.tv_nsec % (1000*1000*1000);



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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic93f90685c6d6dc28dfc4ad48c998e0eac113cf8
Gerrit-Change-Number: 10489
Gerrit-PatchSet: 2
Gerrit-Owner: Stefan Sperling <ssperling at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Stefan Sperling <ssperling at sysmocom.de>
Gerrit-Comment-Date: Fri, 17 Aug 2018 13:54:32 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180817/202cc883/attachment.htm>


More information about the gerrit-log mailing list