diff --git a/Backend/MonitorAgent/MonitorAgent.Application/Services/MonitorService.cs b/Backend/MonitorAgent/MonitorAgent.Application/Services/MonitorService.cs index 6d5d516..19c5950 100644 --- a/Backend/MonitorAgent/MonitorAgent.Application/Services/MonitorService.cs +++ b/Backend/MonitorAgent/MonitorAgent.Application/Services/MonitorService.cs @@ -30,7 +30,7 @@ public class MonitorService : IMonitorService public async Task GetUptimeAsync(CancellationToken cancellationToken = default) { var uptime = await File.ReadAllTextAsync("/proc/uptime", cancellationToken); - return decimal.Parse(uptime.Split()[1], CultureInfo.InvariantCulture); + return decimal.Parse(uptime.Split()[0], CultureInfo.InvariantCulture); } public async Task GetMemoryInfoAsync(CancellationToken cancellationToken = default)