XWidgetSoft Forum
https://www.bbs.xwidget.com/

CPU cores
https://www.bbs.xwidget.com/viewtopic.php?f=3&t=2976
Page 1 of 1

Author:  Jimking [ April 21st, 2013, 5:26 pm ]
Post subject:  CPU cores

Tony I see that when is not available a cpu core, when I use the code,for core that not exists 2,3,4 , appears like this "%CPU3". Maybe you should fix this and it will better and less ugly show as "0%"....

Author:  Tony [ April 22nd, 2013, 4:51 pm ]
Post subject:  Re: CPU cores

OK, I will fix this next version ,thanks :)

Author:  digigamer [ April 23rd, 2013, 6:23 pm ]
Post subject:  Re: CPU cores

jimking wrote:
Tony I see that when is not available a cpu core, when I use the code,for core that not exists 2,3,4 , appears like this "%CPU3". Maybe you should fix this and it will better and less ugly show as "0%"....

My best solution is to place the format code in Substitute too (if you are using a text control) or manually update by registering a listener in core.onUpdate for other component. Example place '%CPU3" in substitute while %CPU3" is your binding core format.

Tony wrote:
OK, I will fix this next version ,thanks :)

Tony, this too needs to be fixed in many other cores too. I've seen this problem in RSS and GMail cores. Perhaps, they should return 'undefined' (script convention) or a blank value.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/