Skip to content

Commit

Permalink
gh-47 bench: fix response time unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknow0 committed Aug 18, 2024
1 parent 5bf39b8 commit 056684b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void readJtl(BufferedReader r, String n) throws IOException {
String name = l.get("label");
tests.add(name);
boolean e = !"true".equals(l.get("success"));
double t = Long.parseLong(l.get("timeStamp")) / 1000.;
double t = Long.parseLong(l.get("timeStamp"));
double v = Long.parseLong(l.get("elapsed")) / 1000.;
double c = Long.parseLong(l.get("Latency")) * 1000.;

Expand All @@ -51,7 +51,7 @@ private void readH2(BufferedReader r, String n) throws IOException {
try (CSVParser parser = CSVParser.parse(r, H2)) {
for (CSVRecord l : parser) {
boolean e = !"200".equals(l.get(1));
double t = Long.parseLong(l.get(0)) / 1000000.;
double t = Long.parseLong(l.get(0)) / 1000.;
double v = Long.parseLong(l.get(2)) / 1000000.;

result.add(t, v, -1, e);
Expand Down

0 comments on commit 056684b

Please sign in to comment.