Skip to content
Snippets Groups Projects
Commit 9aae8ab4 authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Minor updates to address review questions.

Update a comment to correct a name.  Put a magic number into a constant.
parent 14a077a2
No related branches found
No related tags found
1 merge request!91Pub sub plugins
/*!
* @file
* @brief a subscription interface to the mbuf based rmIpcStr data
* @brief a subscription interface to the mbuf based daq_m data
*/
#include <iostream>
......
......@@ -70,6 +70,7 @@ namespace cps_plugins
memory_arena_( 5 ), stopping_{ false }, th_{}
{
std::size_t i = 0;
size_t FE_MBUF_SIZE = 64*1024*1024;
if ( !symmetricom_fd.get( ) )
{
......@@ -79,7 +80,7 @@ namespace cps_plugins
{
std::string shmem_fname = name + "_daq";
void* dcu_addr = (void*)shmem_open_segment(
shmem_fname.c_str( ), 64 * 1024 * 1024 );
shmem_fname.c_str( ), FE_MBUF_SIZE );
if ( !dcu_addr )
{
throw std::runtime_error(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment