This is the first working version of the new logging system. Some work
in fine tuning still needs to be done. But is reasonably OK now.
This commit is contained in:
@ -41,7 +41,6 @@
|
||||
#include <time.h>
|
||||
#include "fortify.h"
|
||||
#include "sics.h"
|
||||
#include "servlog.h"
|
||||
#include "perfmon.h"
|
||||
#include "perfmon.i"
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@ -125,10 +124,6 @@ int IncrementPerfMon(pPerfMon self)
|
||||
self->iCount = 0;
|
||||
self->tLast = tCurrent;
|
||||
self->tTarget = tCurrent + self->iInteg;
|
||||
if (self->iLog) {
|
||||
snprintf(pBueffel,sizeof(pBueffel)-1, "PerfMon = %f", self->fCPS);
|
||||
SICSLogWrite(pBueffel, eValue);
|
||||
}
|
||||
InvokeCallBack(self->pCall, VALUECHANGE, &self->fCPS);
|
||||
traceSys("perfmon","%d:%f", self->iInteg, self->fCPS);
|
||||
}
|
||||
@ -160,7 +155,7 @@ static int InterestCallback(int iEvent, void *pEvent, void *pUser)
|
||||
}
|
||||
|
||||
snprintf(pBueffel,sizeof(pBueffel)-1, "Performance = %f", *fPos);
|
||||
SCWrite(pCon, pBueffel, eValue);
|
||||
SCWrite(pCon, pBueffel, eEvent);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user