diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2021-06-10 19:53:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 19:53:55 +0200 |
commit | 7d4fa59ff48323503128787db7e1ec19b8a0b033 (patch) | |
tree | 0b246d1ca1253cb913467d8328b33edf19f6a532 | |
parent | e9504973ca70e4e2d36d98e56def70f7b681d9e1 (diff) | |
parent | 1f5f6e229462b1b971d64b786388d74ad71d1a53 (diff) |
Merge pull request #18204 from vespa-engine/jonmv/vespa-feed-client
Through per second, not milli
-rw-r--r-- | vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java b/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java index 9d4f3525c32..5aff8dfc25d 100644 --- a/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java +++ b/vespa-feed-client-cli/src/main/java/ai/vespa/feed/client/CliClient.java @@ -127,7 +127,7 @@ public class CliClient { JsonFactory factory = new JsonFactory(); long okCount = stats.successes(); long errorCount = stats.requests() - okCount; - double throughput = okCount * 1e6D / Math.max(1, durationNanos); + double throughput = okCount * 1e9 / Math.max(1, durationNanos); try (JsonGenerator generator = factory.createGenerator(systemOut).useDefaultPrettyPrinter()) { generator.writeStartObject(); generator.writeNumberField("feeder.runtime", durationNanos / 1_000_000); |