aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/Lime.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-03-12 15:59:29 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-03-12 15:59:29 +0100
commitf6e3913f80ec15f2a554dc2ad1fe219cefd1f5d2 (patch)
tree449342eee3badc18052485ff007640ceef987ef6 /src/output/Lime.cpp
parent9f1ba12f3640f95ebb56b83069b925c4d63b5f43 (diff)
downloaddabmod-f6e3913f80ec15f2a554dc2ad1fe219cefd1f5d2.tar.gz
dabmod-f6e3913f80ec15f2a554dc2ad1fe219cefd1f5d2.tar.bz2
dabmod-f6e3913f80ec15f2a554dc2ad1fe219cefd1f5d2.zip
Lime: show fifo fill percent in RC
Diffstat (limited to 'src/output/Lime.cpp')
-rw-r--r--src/output/Lime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/Lime.cpp b/src/output/Lime.cpp
index fff3dd4..1d4c581 100644
--- a/src/output/Lime.cpp
+++ b/src/output/Lime.cpp
@@ -355,9 +355,9 @@ double Lime::get_temperature(void) const
return temp;
}
-uint32_t Lime::get_fifo_fill_count(void) const
+float Lime::get_fifo_fill_percent(void) const
{
- return m_last_fifo_filled_count;
+ return m_last_fifo_fill_percent * 100;
}
void Lime::transmit_frame(const struct FrameData &frame)
@@ -383,7 +383,7 @@ void Lime::transmit_frame(const struct FrameData &frame)
etiLog.level(info) << "overrun" << LimeStatus.overrun << "underun" << LimeStatus.underrun << "drop" << LimeStatus.droppedPackets;
#endif
- m_last_fifo_filled_count.store(LimeStatus.fifoFilledCount);
+ m_last_fifo_fill_percent.store((float)LimeStatus.fifoFilledCount / (float)LimeStatus.fifoSize);
/*
if(LimeStatus.fifoFilledCount>=5*FRAME_LENGTH*m_interpolate) // Start if FIFO is half full {