(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.4 and 1.8

version 1.4, 2004/06/09 20:05:48 version 1.8, 2004/10/17 20:39:17
Line 1 
Line 1 
 //%2003////////////////////////////////////////////////////////////////////////  //%2004////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L. P., IBM Corp., The Open Group, Tivoli Systems.  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
 // IBM Corp.; EMC Corporation, The Open Group. // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 25 
Line 27 
 // //
 // Author: Arthur Pichlkostner // Author: Arthur Pichlkostner
 //             (checked in: Markus Mueller sedgewick_de@yahoo.de) //             (checked in: Markus Mueller sedgewick_de@yahoo.de)
   // Modified By: Amit K Arora, IBM (amita@in.ibm.com) for Bug#1090
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 72 
Line 75 
  
 StatisticalData::StatisticalData(){ StatisticalData::StatisticalData(){
  
   
      copyGSD = 0;
   
    for (unsigned int i=0; i<StatisticalData::length; i++){    for (unsigned int i=0; i<StatisticalData::length; i++){
       numCalls[i] = 0;       numCalls[i] = 0;
       cimomTime[i] = 0;       cimomTime[i] = 0;
Line 82 
Line 88 
    }    }
 } }
  
 void StatisticalData::addToValue(Uint64 value, Uint16 type, Uint32 t){  void StatisticalData::addToValue(Sint64 value, Uint16 type, Uint32 t){
    _mutex.lock( pegasus_thread_self() );     AutoMutex autoMut(_mutex);
    switch(t){    switch(t){
           case SERVER:          numCalls[type] += 1;           case SERVER:          numCalls[type] += 1;
                         cimomTime[type] += value;                         cimomTime[type] += value;
Line 95 
Line 101 
       case BYTES_READ:  requestSize[type] += value;       case BYTES_READ:  requestSize[type] += value;
                         break;                         break;
    }    }
    _mutex.unlock();  
 } }
  
    void StatisticalData::setCopyGSD(Boolean flag)
   {
   
           copyGSD = flag;
   }
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.8

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2