From 4bc7c2632a827dcf49fffa685497f48c38fc2279 Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Sun, 22 Oct 2023 08:16:34 -0400 Subject: [PATCH] fixed freeMemory, though now reads in Kb for giga --- DCCTimerGiga.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DCCTimerGiga.cpp b/DCCTimerGiga.cpp index ae67671..5afc3ad 100644 --- a/DCCTimerGiga.cpp +++ b/DCCTimerGiga.cpp @@ -300,8 +300,8 @@ extern "C" char* sbrk(int incr); int DCCTimer::freeMemory() { char top; - - return (int)(&top - reinterpret_cast(sbrk(0))); + unsigned int tmp = (unsigned int)(&top - reinterpret_cast(sbrk(0))); + return (int)(tmp / 1000); } void DCCTimer::reset() {