https://bugzilla.novell.com/show_bug.cgi?id=850563
https://bugzilla.novell.com/show_bug.cgi?id=850563#c1
Michael Meeks changed:
What |Removed |Added
----------------------------------------------------------------------------
Platform|Other |x86
--- Comment #1 from Michael Meeks 2013-11-14 20:01:22 UTC ---
I guess it may be me running a 32bit Linux on a 64bit system or something (?)
but anyhow some debugging seems to show that updateCPULoad() fills in some
sensible numbers from the system:
(gdb) p *load
$2 = {userLoad = 444, niceLoad = 0, sysLoad = 11, idleLoad = 545, userTicks =
11673674, niceTicks = 2371831, sysTicks = 23195506,
idleTicks = 197359920, waitTicks = 1394707}
And fill_stats seems to do something sensible too:
(gdb) p msg
$21 = (StatsMsg *) 0xbfd6bdbc
(gdb) p *msg
$22 = {<Msg> = {_vptr.Msg = 0x807acf0 , type = M_STATS},
load = 0, loadAvg1 = 520, loadAvg5 = 440, loadAvg10 = 280,
freeMem = 4878}
(gdb) l
369
370 msg->freeMem = (load_t)( MemFree / 1024.0 + 0.5 );
371
372 }
373 return true;
374 }
(gdb) bt
#0 fill_stats (myidleload=@0xbfd6bdac: 908, myniceload=@0xbfd6bdb0: 0,
memory_fillgrade=@0xbfd6bda8: 0, msg=msg@entry=0xbfd6bdbc, hint=0)
at load.cpp:374
#1 0x0804f6a3 in Daemon::maybe_stats (this=this@entry=0xbfd6c01c,
send_ping=send_ping@entry=false) at main.cpp:663
#2 0x08055d94 in Daemon::answer_client_requests (this=this@entry=0xbfd6c01c)
at main.cpp:1420
#3 0x080568d0 in Daemon::working_loop (this=this@entry=0xbfd6c01c) at
main.cpp:1647
#4 0x0804e54f in main (argc=12, argv=0xbfd6c2c4) at main.cpp:1886
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.