diff --git a/src/fe/timing.c b/src/fe/timing.c index be89b7b7d5a55720dee8f97a2c95315c348e3ea9..c522e5f08718cf45fbf9299611cf320e109eb075 100644 --- a/src/fe/timing.c +++ b/src/fe/timing.c @@ -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;