mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
2009-12-18 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: Fixed bug #2907481. * bin/PandoraAgent.exe: Updated to current revision. * installer/pandora.mpi, pandora.cc: Updated build. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2223 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
19a26e177d
commit
40febeca27
@ -1,3 +1,11 @@
|
|||||||
|
2009-12-18 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* windows/pandora_wmi.cc: Fixed bug #2907481.
|
||||||
|
|
||||||
|
* bin/PandoraAgent.exe: Updated to current revision.
|
||||||
|
|
||||||
|
* installer/pandora.mpi, pandora.cc: Updated build.
|
||||||
|
|
||||||
2009-12-16 Raul Mateos <raulofpandora@gmail.com>
|
2009-12-16 Raul Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* installer/pandora.mpi, README:Preparing release
|
* installer/pandora.mpi, README:Preparing release
|
||||||
|
Binary file not shown.
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{091125}
|
{091218}
|
||||||
|
|
||||||
ViewReadme
|
ViewReadme
|
||||||
{Yes}
|
{Yes}
|
||||||
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
|||||||
using namespace Pandora_Strutils;
|
using namespace Pandora_Strutils;
|
||||||
|
|
||||||
#define PATH_SIZE _MAX_PATH+1
|
#define PATH_SIZE _MAX_PATH+1
|
||||||
#define PANDORA_VERSION ("3.0(Build 091125)")
|
#define PANDORA_VERSION ("3.0(Build 091218)")
|
||||||
|
|
||||||
string pandora_path;
|
string pandora_path;
|
||||||
string pandora_dir;
|
string pandora_dir;
|
||||||
|
@ -255,9 +255,11 @@ Pandora_Wmi::getCpuUsagePercentage (int cpu_id) {
|
|||||||
FOR_EACH (quickfix, quickfixes, NULL) {
|
FOR_EACH (quickfix, quickfixes, NULL) {
|
||||||
dhGetValue (L"%d", &load_percentage, quickfix,
|
dhGetValue (L"%d", &load_percentage, quickfix,
|
||||||
L".LoadPercentage");
|
L".LoadPercentage");
|
||||||
|
// Sanity check
|
||||||
total_cpus++;
|
if (load_percentage >= 0 && load_percentage <= 100) {
|
||||||
total_load += load_percentage;
|
total_cpus++;
|
||||||
|
total_load += load_percentage;
|
||||||
|
}
|
||||||
} NEXT_THROW (quickfix);
|
} NEXT_THROW (quickfix);
|
||||||
|
|
||||||
if (total_cpus == 0) {
|
if (total_cpus == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user