Repository: cassandra Updated Branches: refs/heads/trunk 6abba68ae -> 11aeeea2c
fix errors in cassandra-stress print settings output patch by bslater reviewed by dbrosius for CASSANDRA-12473 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/11aeeea2 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/11aeeea2 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/11aeeea2 Branch: refs/heads/trunk Commit: 11aeeea2cbb9d6df890c798f68874a00d9d9f031 Parents: 6abba68 Author: Ben Slater <ben.sla...@instaclustr.com> Authored: Sat Sep 3 23:05:35 2016 -0400 Committer: Dave Brosius <dbros...@mebigfatguy.com> Committed: Sat Sep 3 23:05:35 2016 -0400 ---------------------------------------------------------------------- .../org/apache/cassandra/stress/settings/OptionDistribution.java | 2 +- .../apache/cassandra/stress/settings/OptionRatioDistribution.java | 2 +- .../src/org/apache/cassandra/stress/settings/SettingsLog.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/11aeeea2/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java ---------------------------------------------------------------------- diff --git a/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java b/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java index f613985..8784158 100644 --- a/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java +++ b/tools/stress/src/org/apache/cassandra/stress/settings/OptionDistribution.java @@ -482,7 +482,7 @@ public class OptionDistribution extends Option } @Override - public String getConfigAsString(){return String.format("Gaussian: min=%d,max=%d,mean=%f,stdev=%f", min, max, stdev, mean);} + public String getConfigAsString(){return String.format("Gaussian: min=%d,max=%d,mean=%f,stdev=%f", min, max, mean, stdev);} } http://git-wip-us.apache.org/repos/asf/cassandra/blob/11aeeea2/tools/stress/src/org/apache/cassandra/stress/settings/OptionRatioDistribution.java ---------------------------------------------------------------------- diff --git a/tools/stress/src/org/apache/cassandra/stress/settings/OptionRatioDistribution.java b/tools/stress/src/org/apache/cassandra/stress/settings/OptionRatioDistribution.java index 4d78b7a..1a8aa83 100644 --- a/tools/stress/src/org/apache/cassandra/stress/settings/OptionRatioDistribution.java +++ b/tools/stress/src/org/apache/cassandra/stress/settings/OptionRatioDistribution.java @@ -160,7 +160,7 @@ public class OptionRatioDistribution extends Option } @Override - public String getConfigAsString(){return String.format("Ration: divisor=%f;delegate=%s",divisor, delegate.getConfigAsString());}; + public String getConfigAsString(){return String.format("Ratio: divisor=%f;delegate=%s",divisor, delegate.getConfigAsString());}; } http://git-wip-us.apache.org/repos/asf/cassandra/blob/11aeeea2/tools/stress/src/org/apache/cassandra/stress/settings/SettingsLog.java ---------------------------------------------------------------------- diff --git a/tools/stress/src/org/apache/cassandra/stress/settings/SettingsLog.java b/tools/stress/src/org/apache/cassandra/stress/settings/SettingsLog.java index 5a120fa..dcc220f 100644 --- a/tools/stress/src/org/apache/cassandra/stress/settings/SettingsLog.java +++ b/tools/stress/src/org/apache/cassandra/stress/settings/SettingsLog.java @@ -101,7 +101,7 @@ public class SettingsLog implements Serializable public void printSettings(MultiPrintStream out) { out.printf(" No Summary: %b%n", noSummary); - out.printf(" Print Setting: %b%n", noSettings); + out.printf(" No Settings: %b%n", noSettings); out.printf(" File: %s%n", file); out.printf(" Interval Millis: %d%n", intervalMillis); out.printf(" Level: %s%n", level);