From 8efeb0e4dcb815bc832810fcdaddbf152c3ffb09 Mon Sep 17 00:00:00 2001 From: ryzij Date: Thu, 2 Jul 2026 09:55:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B0=D0=BF=D1=82=D0=B0=D0=B9=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MonitorAgent.Application/Services/MonitorService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)