Browse Source

cmApBuf.c : Added meters output to cmApBufRefport().

master
kevin.larke 4 years ago
parent
commit
18b815d387
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      cmApBuf.c

+ 6
- 3
cmApBuf.c View File

@@ -815,6 +815,7 @@ void cmApBufInputToOutput( unsigned iDevIdx, unsigned oDevIdx )
815 815
 
816 816
       unsigned    byteCnt  = ip->dspFrameCnt * sizeof(cmApSample_t);
817 817
 
818
+
818 819
       if( oBufPtrArray[i] != NULL )
819 820
       {      
820 821
         // the input channel is not disabled
@@ -846,18 +847,20 @@ void cmApBufReport( cmRpt_t* rpt )
846 847
       unsigned ii = 0;
847 848
       unsigned oi = 0;
848 849
       unsigned fn  = 0;
850
+      cmApSample_t mtr = 0;
849 851
       for(k=0; k<ip->chCnt; ++k)
850 852
       {
851 853
         cmApCh* cp = ip->chArray + i;
852 854
         ii += cp->ii;
853 855
         oi += cp->oi;
854 856
         fn += cp->fn;
857
+        mtr += _cmApMeterValue(cp);
855 858
       }
856 859
 
857
-        cmRptPrintf(rpt,"%s - i:%7i o:%7i f:%7i n:%7i err %s:%7i ",
860
+      cmRptPrintf(rpt,"%s - i:%7i o:%7i f:%7i n:%7i err %s:%7i  mtr:%5.4f ",
858 861
         j==0?"IN":"OUT",
859
-        ii,oi,fn,ip->n, (j==0?"over":"under"), ip->faultCnt);
860
-
862
+        ii,oi,fn,ip->n, (j==0?"over":"under"), ip->faultCnt, mtr);
863
+      
861 864
     }
862 865
 
863 866
     cmRptPrintf(rpt,"\n");

Loading…
Cancel
Save