summaryrefslogtreecommitdiffstats
path: root/src/output/Lime.h
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.h
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.h')
-rw-r--r--src/output/Lime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/Lime.h b/src/output/Lime.h
index febb878..48fb648 100644
--- a/src/output/Lime.h
+++ b/src/output/Lime.h
@@ -81,7 +81,7 @@ class Lime : public Output::SDRDevice
virtual const char *device_name(void) const override;
virtual double get_temperature(void) const override;
- virtual uint32_t get_fifo_fill_count(void) const;
+ virtual float get_fifo_fill_percent(void) const;
private:
SDRDeviceConfig &m_conf;
@@ -92,7 +92,7 @@ class Lime : public Output::SDRDevice
size_t m_interpolate = 1;
std::vector<complexf> interpolatebuf;
- std::atomic<uint32_t> m_last_fifo_filled_count = ATOMIC_VAR_INIT(0);
+ std::atomic<float> m_last_fifo_fill_percent = ATOMIC_VAR_INIT(0);
size_t underflows = 0;
size_t overflows = 0;