summaryrefslogtreecommitdiffstats
path: root/src/time_histogram.cpp
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-04-24 14:43:28 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-05-18 19:20:21 +0300
commita53f6be0617721b535086298095ad49057a7be69 (patch)
tree3ccd8de6108cc3d769d25447cb39640bd2b2940d /src/time_histogram.cpp
parentd3b66fddf9840272b367f42e26ce16198eeadaf6 (diff)
Working version. temporary send_node that duplicates the mbuf data
Diffstat (limited to 'src/time_histogram.cpp')
-rwxr-xr-xsrc/time_histogram.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/time_histogram.cpp b/src/time_histogram.cpp
index 96796bfc..a6b98079 100755
--- a/src/time_histogram.cpp
+++ b/src/time_histogram.cpp
@@ -212,7 +212,10 @@ void CTimeHistogram::Dump(FILE *fd){
void CTimeHistogram::dump_json(std::string name,std::string & json ){
char buff[200];
- sprintf(buff,"\"%s\":{",name.c_str());
+ if (name != "")
+ sprintf(buff,"\"%s\":{",name.c_str());
+ else
+ sprintf(buff,"{");
json+=std::string(buff);
json+=add_json("min_usec",get_usec(m_min_delta));