Skip to content

Commit

Permalink
Merge pull request #12 from Lifzho/main
Browse files Browse the repository at this point in the history
Fix ambiguous of Json arrayValue append usage
  • Loading branch information
per-mathisen-arm authored Feb 28, 2024
2 parents 7b8e59b + ef2b759 commit a119bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collectors/perf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ bool PerfCollector::postprocess(const std::vector<int64_t>& timing)
{
clocks_sec.push_back(iter.tv_sec);
clocks_nsec.push_back(iter.tv_nsec);
clockValue[sec_name.c_str()].append(iter.tv_sec);
clockValue[nsec_name.c_str()].append(iter.tv_nsec);
clockValue[sec_name.c_str()].append((Json::Value::Int64)iter.tv_sec);
clockValue[nsec_name.c_str()].append((Json::Value::Int64)iter.tv_nsec);
}
mCustomResult["thread_data"].append(clockValue);
}
Expand Down

0 comments on commit a119bcb

Please sign in to comment.