summaryrefslogtreecommitdiffstats
path: root/src/time_histogram.cpp
diff options
context:
space:
mode:
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));