--- projects/cms/source/host/c++/SysMon.cpp 2001/03/23 16:39:04 1.6 +++ projects/cms/source/host/c++/SysMon.cpp 2001/03/23 16:57:03 1.7 @@ -247,7 +247,7 @@ string SysMon::getData(){ if ( debug == 1 ){ std::cout << "Adding Element + attributes" << endl; } - count++; + // count++; } // if isAttrib = 0; attributeLevel = ""; @@ -283,7 +283,7 @@ string SysMon::getData(){ if ( attributeLevel != levels[level] ){ xml.addElement(attributeLevel,attributes,""); if ( debug == 1 ){ - std::cout << "Adding Element + attributes" << endl; + std::cout << "Adding Element + attributes1" << endl; } attributeLevel = ""; attributes = ""; @@ -292,7 +292,7 @@ string SysMon::getData(){ if ( count == titlepointer ){ xml.addElement(attributeLevel,attributes,""); if ( debug == 1 ){ - std::cout << "Adding Element + attributes" << endl; + std::cout << "Adding Element + attributes2" << endl; } attributeLevel = ""; attributes = ""; @@ -308,7 +308,7 @@ string SysMon::getData(){ if ( attributeLevel != "" ){ xml.addElement(attributeLevel,attributes,""); if ( debug == 1 ){ - std::cout << "Adding Element + attributes" << endl; + std::cout << "Adding Element + attributes3" << endl; } attributeLevel = ""; attributes = ""; @@ -338,11 +338,12 @@ string SysMon::getData(){ } else { xml.addElement(levels[level], values[count]); + count++; if ( debug == 1 ){ std::cout << "Adding Element" << endl; } } - count++; + } else { // gotta change it