From 92515a0477fdf3da79b66cfdb918abf1d9dad613 Mon Sep 17 00:00:00 2001 From: Nicolas Cuervo Date: Mon, 7 Aug 2017 17:45:30 +0200 Subject: x300 impl: fix bytes/s for 1GigE --- host/lib/usrp/x300/x300_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/lib/usrp/x300/x300_impl.hpp b/host/lib/usrp/x300/x300_impl.hpp index 982369396..b2990a272 100644 --- a/host/lib/usrp/x300/x300_impl.hpp +++ b/host/lib/usrp/x300/x300_impl.hpp @@ -83,7 +83,7 @@ static const size_t X300_MAX_RATE_10GIGE = (size_t)( // bytes/s ( float(X300_10GE_DATA_FRAME_MAX_SIZE - uhd::usrp::DEVICE3_TX_MAX_HDR_LEN) / float(X300_10GE_DATA_FRAME_MAX_SIZE + 8 /* UDP header */ + 20 /* Ethernet header length */ ))); static const size_t X300_MAX_RATE_1GIGE = (size_t)( // bytes/s - 10e9 / 8 * // wire speed multiplied by percentage of packets that is sample data + 1e9 / 8 * // wire speed multiplied by percentage of packets that is sample data ( float(X300_1GE_DATA_FRAME_MAX_SIZE - uhd::usrp::DEVICE3_TX_MAX_HDR_LEN) / float(X300_1GE_DATA_FRAME_MAX_SIZE + 8 /* UDP header */ + 20 /* Ethernet header length */ ))); -- cgit v1.2.3