From a4c9f1e09b5f6411a781c548ec079bb23fd6273b Mon Sep 17 00:00:00 2001 From: Arie Karchmar Date: Sun, 7 Jul 2024 18:34:15 +0300 Subject: [PATCH] Fix proc_stat unit test --- test/test_proc_stat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_proc_stat.cpp b/test/test_proc_stat.cpp index bfd4dd1..a49d8dc 100644 --- a/test/test_proc_stat.cpp +++ b/test/test_proc_stat.cpp @@ -30,7 +30,7 @@ TEST_CASE("Parse stat", "[procfs][proc_stat]") SECTION("Validate softirq") { unsigned long long sum = std::accumulate( - stats.softirq.per_item.begin(), stats.softirq.per_item.end(), 0); + stats.softirq.per_item.begin(), stats.softirq.per_item.end(), 0ULL); REQUIRE(sum == stats.softirq.total); } }