From 0ba5d4975804ec0a72d264d3c05bcf4d9b684d58 Mon Sep 17 00:00:00 2001 From: Drath Date: Thu, 19 Mar 2026 00:34:39 +0100 Subject: [PATCH] changes for c++20 --- src/sys.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sys.cpp b/src/sys.cpp index af51137..c9024a9 100644 --- a/src/sys.cpp +++ b/src/sys.cpp @@ -32,8 +32,8 @@ void sys::getTimeDate(TimeDate* td) { void sys::getRam(Memory* mem) { static std::array buf; // file is longer but we only need first 128 chars utils::readFile("/proc/meminfo", buf); - mem->free = getVal("MemAvailable:", std::string_view(buf)); - mem->total = getVal("MemTotal:", std::string_view(buf)); // shouldn't really update this on each loop + mem->free = getVal("MemAvailable:", buf.data()); + mem->total = getVal("MemTotal:", buf.data()); // shouldn't really update this on each loop mem->used = mem->total - mem->free; }