Skip to content
Snippets Groups Projects
Commit b3c5b176 authored by Ruonan Wang's avatar Ruonan Wang Committed by Atkins, Charles Vernon
Browse files

minor fix for json keys

parent 689c0902
No related branches found
No related tags found
1 merge request!84Added all DataMan plugins
......@@ -61,7 +61,10 @@ void DataMan::add_stream(json p_jmsg)
man->init(p_jmsg);
this->add_next(method, man);
}
add_man_to_path("zfp", method);
if (p_jmsg["compress_method"] != nullptr)
{
add_man_to_path(p_jmsg["compress_method"], method);
}
}
void DataMan::flush() { flush_next(); }
......
......@@ -152,8 +152,10 @@ int DataManBase::put_end(const void *p_data, json &p_jmsg)
m_profiling["manager_mbs"] =
m_profiling["total_mb"].get<double>() /
m_profiling["total_manager_time"].get<double>();
if (p_jmsg["compressed_size"] != nullptr)
if (p_jmsg["compressed_size"].is_number())
p_jmsg["putbytes"] = p_jmsg["compressed_size"].get<size_t>();
else
p_jmsg.erase("compressed_size");
put_next(p_data, p_jmsg);
return 0;
}
......
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