commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 13/23: ctrlport: pc_throughput_avg register


From: git
Subject: [Commit-gnuradio] [gnuradio] 13/23: ctrlport: pc_throughput_avg registered
Date: Sat, 28 Nov 2015 21:18:07 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit c22b3ec83b457c2bd9f970ecfcc751deb7cf26b8
Author: Johannes Demel <address@hidden>
Date:   Wed Nov 18 12:43:54 2015 +0100

    ctrlport: pc_throughput_avg registered
---
 gnuradio-runtime/lib/block.cc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc
index 6edb739..2bae8ea 100644
--- a/gnuradio-runtime/lib/block.cc
+++ b/gnuradio-runtime/lib/block.cc
@@ -840,6 +840,13 @@ namespace gr {
         DISPTIME | DISPOPTSTRIP)));
 
     d_rpc_vars.push_back(
+      rpcbasic_sptr(new rpcbasic_register_get<block, float>(
+        alias(), "avg throughput", &block::pc_throughput_avg,
+        pmt::mp(0), pmt::mp(1e9), pmt::mp(0),
+        "items/s", "Average items throughput in call to work", RPC_PRIVLVL_MIN,
+        DISPTIME | DISPOPTSTRIP)));
+
+    d_rpc_vars.push_back(
       rpcbasic_sptr(new rpcbasic_register_get<block, std::vector<float> >(
         alias(), "input \% full", &block::pc_input_buffers_full,
         pmt::make_f32vector(0,0), pmt::make_f32vector(0,1), 
pmt::make_f32vector(0,0),



reply via email to

[Prev in Thread] Current Thread [Next in Thread]