Skip to content
Snippets Groups Projects
Commit 6a98d029 authored by Erik von Reis's avatar Erik von Reis
Browse files

RCG: Fix average timing to take clock_div into account.

parent b421de55
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ sendTimingDiags2Epics( volatile CDS_EPICS* pLocalEpics,
timing_diag_t* timeinfo,
adcInfo_t* adcinfo )
{
pLocalEpics->epicsOutput.cpuMeterAvg = (timeinfo->cycleTimeAvg / CYCLE_PER_SECOND);
pLocalEpics->epicsOutput.cpuMeterAvg = (timeinfo->cycleTimeAvg * UNDERSAMPLE / CYCLE_PER_SECOND);
pLocalEpics->epicsOutput.cpuMeter = timeinfo->cycleTimeSec;
pLocalEpics->epicsOutput.cpuMeterMax = timeinfo->cycleTimeMax;
pLocalEpics->epicsOutput.cpuLongCycle = timeinfo->longestCycle;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment