(file) Return to StatisticalData.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/StatisticalData.cpp between version 1.22.8.3 and 1.22.8.4

version 1.22.8.3, 2013/06/03 22:35:13 version 1.22.8.4, 2013/09/29 19:09:50
Line 114 
Line 114 
     }     }
 } }
  
 void StatisticalData::addToValue(Sint64 value, Uint16 type, Uint32 t)  void StatisticalData::addToValue(Sint64 value, MessageType msgType, Uint32 t)
 { {
       // Map MessageType to statistic type
       Uint16 type;
       if ((msgType) >= CIM_OPEN_ENUMERATE_INSTANCES_RESPONSE_MESSAGE)
       {
           type = msgType - CIM_SET_QUALIFIER_RESPONSE_MESSAGE;
       }
       else if (msgType >= CIM_ENUMERATE_CLASSES_RESPONSE_MESSAGE)
       {
          type = msgType - CIM_OPEN_ENUMERATE_INSTANCES_REQUEST_MESSAGE;
       }
       else if (msgType >= CIM_GET_CLASS_RESPONSE_MESSAGE)
       {
           type = msgType - CIM_GET_CLASS_RESPONSE_MESSAGE;
       }
       else
       {
           type = msgType - 1;
       }
   
       cout << "StatisticalData::addToValue " << MessageTypeToString(msgType)
            << " # " << msgType << " stat type " << type << endl;
       // Test if valid statistic type
     if (type >= NUMBER_OF_TYPES)     if (type >= NUMBER_OF_TYPES)
     {     {
          PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL2,          PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL2,


Legend:
Removed from v.1.22.8.3  
changed lines
  Added in v.1.22.8.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2