Using options "-B" (sort by boot time), "-m <count>" (display max count), and "-f" (loop continuously) displays the wrong number of events after the first time. Reproducible: Always Steps to Reproduce: 1.run "uprecords -a -m 15 -f -B" Actual Results: First loop, 15 uptimes are displayed. After that, only 8 are displayed. Expected Results: Expected 15 times to be displayed on every loop. As a test, after statement: for ( u=sort_urec(urec_list, sort_by) ; u ; u=u->next ) I added: printf("%s:%d - u: 0x%08X\n", __FILE__, __LINE__, u); It seems that, on the second and subsequent "-f" loops, "u" is null after 8 iterations in the for loop.
Created attachment 176965 [details] emerge --info
Package: app-misc/uptimed-0.3.13
This looks like an upstream problem as their are no Gentoo patch files for this ebuild. Maybe come up with a patch, and send it to the maintainer? I recommend this bug be marked upstream problem in the mean time.
Let the maintainer decide about right status for this bug. Reassigning to maintainer.
Talk with upstream, please
Created attachment 177019 [details] Fix problem I've investigated further and found that the attached patch corrects the incorrect behavior.