summaryrefslogtreecommitdiffstats
path: root/node-maintainer
diff options
context:
space:
mode:
authorsindre <sindre.grostad@icloud.com>2017-08-08 10:34:43 +0200
committerOla Aunrønning <olaa@yahoo-inc.com>2017-08-15 12:29:32 +0200
commitacddf72245e8b7787edc134b84c9a369d105f080 (patch)
treef01febdd375c01e4964e694f60e8cb0944542024 /node-maintainer
parenta35a0269bf5b22f815fc51aa6809361c7b87dbf9 (diff)
cleanup
Diffstat (limited to 'node-maintainer')
-rw-r--r--node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/hardware/BenchmarkResultInspector.java6
-rw-r--r--node-maintainer/src/test/java/com/yahoo/vespa/hosted/node/verification/spec/report/VerificationReportTest.java1
2 files changed, 4 insertions, 3 deletions
diff --git a/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/hardware/BenchmarkResultInspector.java b/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/hardware/BenchmarkResultInspector.java
index fbb52dd7e37..b3ae2264a26 100644
--- a/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/hardware/BenchmarkResultInspector.java
+++ b/node-maintainer/src/main/java/com/yahoo/vespa/hosted/node/verification/hardware/BenchmarkResultInspector.java
@@ -16,15 +16,15 @@ public class BenchmarkResultInspector {
public static BenchmarkReport makeBenchmarkReport(BenchmarkResults benchmarkResults) {
BenchmarkReport benchmarkReport = new BenchmarkReport();
double cpuCyclesPerSec = benchmarkResults.getCpuCyclesPerSec();
- if ( cpuCyclesPerSec < CPU_FREQUENCY_LOWER_LIMIT) {
+ if (cpuCyclesPerSec < CPU_FREQUENCY_LOWER_LIMIT) {
benchmarkReport.setCpuCyclesPerSec(cpuCyclesPerSec);
}
double memoryWriteSpeed = benchmarkResults.getMemoryWriteSpeedGBs();
- if ( memoryWriteSpeed < MEMORY_WRITE_SPEED_LOWER_LIMIT) {
+ if (memoryWriteSpeed < MEMORY_WRITE_SPEED_LOWER_LIMIT) {
benchmarkReport.setMemoryWriteSpeedGBs(memoryWriteSpeed);
}
double memoryReadSpeed = benchmarkResults.getMemoryReadSpeedGBs();
- if ( memoryReadSpeed < MEMORY_READ_SPEED_LOWER_LIMIT) {
+ if (memoryReadSpeed < MEMORY_READ_SPEED_LOWER_LIMIT) {
benchmarkReport.setMemoryReadSpeedGBs(memoryReadSpeed);
}
double diskSpeed = benchmarkResults.getDiskSpeedMbs();
diff --git a/node-maintainer/src/test/java/com/yahoo/vespa/hosted/node/verification/spec/report/VerificationReportTest.java b/node-maintainer/src/test/java/com/yahoo/vespa/hosted/node/verification/spec/report/VerificationReportTest.java
index beea4405ef9..2f7bc75af75 100644
--- a/node-maintainer/src/test/java/com/yahoo/vespa/hosted/node/verification/spec/report/VerificationReportTest.java
+++ b/node-maintainer/src/test/java/com/yahoo/vespa/hosted/node/verification/spec/report/VerificationReportTest.java
@@ -25,6 +25,7 @@ public class VerificationReportTest {
String actualJson = om.writeValueAsString(verificationReport);
assertEquals(expectedJson, actualJson);
}
+
@Test
public void Json_is_in_wanted_format_when_all_specs_are_wrong() throws Exception {
verificationReport.setActualInterfaceSpeed(100D);