Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253283 - app-misc/uptimed-0.3.13 - uprecords option conflict
Summary: app-misc/uptimed-0.3.13 - uprecords option conflict
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Raúl Porcel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-31 18:34 UTC by David Relson
Modified: 2009-01-01 18:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info.txt,4.11 KB, text/plain)
2008-12-31 18:35 UTC, David Relson
Details
Fix problem (uptimed-0.3.13-show_max.patch,505 bytes, text/plain)
2009-01-01 18:24 UTC, David Relson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Relson 2008-12-31 18:34:43 UTC
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.
Comment 1 David Relson 2008-12-31 18:35:12 UTC
Created attachment 176965 [details]
emerge --info
Comment 2 David Relson 2008-12-31 21:02:22 UTC
Package:  app-misc/uptimed-0.3.13
Comment 3 Alex Brandt (RETIRED) gentoo-dev 2009-01-01 06:18:02 UTC
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.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-01 11:25:04 UTC
Let the maintainer decide about right status for this bug.

Reassigning to maintainer.
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2009-01-01 11:27:48 UTC
Talk with upstream, please
Comment 6 David Relson 2009-01-01 18:24:53 UTC
Created attachment 177019 [details]
Fix problem

I've investigated further and found that the attached patch corrects the incorrect behavior.