[mythtv] [PATCH] mythfrontend/statusbox.cpp

Nigel Pearson nigel at ind.tansu.com.au
Wed Nov 10 07:56:43 UTC 2004


> I have added uptime/memory/repository info to the status box as
> I like to be able to check this information every now and then.

	Great idea, Tommy.

> I was wondering if there might be any interest in having someone check 
> it over and put it in cvs?

	I quickly checked on a 0.16 setup. The "load average"
and Mem/Swap lines wrappped of the side of the GUI for me
(could be the theme? G.A.N.T with default font
  sizes and 12/16/25 for small/med/big QT font,
  but I also tried Titivillus and blue - same result)


	Also, your patch will not compile on BSD based systems
or Mac OS X. Here is a slightly larger patch that fixes that,
and shortens the text a little to fit in.

	Note that I have not implemented BSD code for getting
Physical or Virtual memory stats. After trawling for code,
I was sorely tempted to just put a few system("vm_stat")
calls in - it still might be the best way to go?

% cvs diff -u programs/mythfrontend/statusbox.cpp 
programs/mythfrontend/statusbox.h >../patch.general.5

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.general.5
Type: application/octet-stream
Size: 8695 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041110/9e763840/patch.general.obj
-------------- next part --------------


--
Nigel Pearson, nigel at ind.tansu.com.au | "Gentlemen,
Telstra BI&D, Sydney, Australia       |  you can't fight in here
Office: 8255 4222    Fax:  8255 3153  |  - this is the war room!"
Mobile: 0408 664435  Home: 9792 6998  |      Dr Strangelove



More information about the mythtv-dev mailing list