From 1c2396901ff76d5d3be06a13c1a23d7171005918 Mon Sep 17 00:00:00 2001 From: Russell Hammett Date: Wed, 14 Oct 2020 15:54:54 -0400 Subject: [PATCH] CPU Health check shouldn't have been multiplying result by 100 - closes #20 --- .../HealthChecks/CpuHealthCheckGrain.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Kritner.Orleans.GettingStarted.Grains/HealthChecks/CpuHealthCheckGrain.cs b/src/Kritner.Orleans.GettingStarted.Grains/HealthChecks/CpuHealthCheckGrain.cs index 911a0fd..81233b3 100644 --- a/src/Kritner.Orleans.GettingStarted.Grains/HealthChecks/CpuHealthCheckGrain.cs +++ b/src/Kritner.Orleans.GettingStarted.Grains/HealthChecks/CpuHealthCheckGrain.cs @@ -26,18 +26,18 @@ public CpuHealthCheckGrain(IHostEnvironmentStatistics hostEnvironmentStatistics) if (_hostEnvironmentStatistics.CpuUsage > UnhealthyThreshold) { return Task.FromResult(HealthCheckResult.Unhealthy( - $"CPU utilization is unhealthy at {_hostEnvironmentStatistics.CpuUsage * 100}%.")); + $"CPU utilization is unhealthy at {_hostEnvironmentStatistics.CpuUsage}%.")); } if (_hostEnvironmentStatistics.CpuUsage > DegradedThreshold) { return Task.FromResult(HealthCheckResult.Degraded( - $"CPU utilization is degraded at {_hostEnvironmentStatistics.CpuUsage * 100}%.")); + $"CPU utilization is degraded at {_hostEnvironmentStatistics.CpuUsage}%.")); } return Task.FromResult(HealthCheckResult.Healthy( - $"CPU utilization is healthy at {_hostEnvironmentStatistics.CpuUsage * 100}%.")); + $"CPU utilization is healthy at {_hostEnvironmentStatistics.CpuUsage}%.")); } } } \ No newline at end of file