summaryrefslogtreecommitdiffstats
path: root/src/publisher
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-08-03 14:01:06 +0300
committerimarom <imarom@cisco.com>2016-08-03 15:03:09 +0300
commit5bbf8a6df83708bd23226139d0e641b835e87e88 (patch)
tree567a1f1336fb07611bdfd0f3e001442c2a1584c6 /src/publisher
parent35ab1e1766baedee576d282c928ac37b42f66e8d (diff)
push_remote with all packet times zero sends only one packet
fix for #trex-235
Diffstat (limited to 'src/publisher')
-rw-r--r--src/publisher/trex_publisher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/publisher/trex_publisher.cpp b/src/publisher/trex_publisher.cpp
index 850b5955..67670593 100644
--- a/src/publisher/trex_publisher.cpp
+++ b/src/publisher/trex_publisher.cpp
@@ -77,7 +77,7 @@ void
TrexPublisher::publish_json(const std::string &s, uint32_t zip_threshold){
if (m_publisher) {
- if ( (zip_threshold > 0) && (s.size() > zip_threshold) ) {
+ if ( (zip_threshold != 0) && (s.size() > zip_threshold) ) {
publish_zipped_json(s);
} else {
publish_raw_json(s);