Skip to content

Commit

Permalink
report json syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcherry56 committed Jul 8, 2020
1 parent 79f3de6 commit 64a196d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions search/ReportPath.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2551,11 +2551,11 @@ ReportPath::reportPathJson(const Path *path,
network_->location(pin, x, y, exists);
if (exists) {
result += " \"x\": ";
stringPrint(tmp, "%.6f", x);
stringPrint(tmp, "%.9f", x);
result += tmp + ",\n";
result += " \"y\": ";
stringPrint(tmp, "%.6f", y);
result += tmp + "\n";
stringPrint(tmp, "%.9f", y);
result += tmp + ",\n";
}

result += " \"arrival\": ";
Expand All @@ -2564,9 +2564,12 @@ ReportPath::reportPathJson(const Path *path,

result += " \"slew\": ";
stringPrint(tmp, "%.3e", path->slew(this));
result += tmp + ",\n";
result += tmp + "\n";

result += " }\n";
result += " }";
if (i < expanded.size() - 1)
result += ",";
result += "\n";
}
result += " ]\n";
result += "}\n";
Expand Down

0 comments on commit 64a196d

Please sign in to comment.