From 9eb6df1eb44970479e9aa004272b92e77f1ebffc Mon Sep 17 00:00:00 2001 From: Darkpelz <45264354+LukeHuckman@users.noreply.github.com> Date: Thu, 24 Jun 2021 03:58:51 +0800 Subject: [PATCH] Update uwufetch.c --- uwufetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index ec852d2..5350433 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -462,10 +462,10 @@ void get_info() // free command prints like this: "Mem:" total used free shared buff/cache available if (sscanf(line, "Mem: %d %d", &ram_total, &ram_used)) { - // convert to megabytes + // convert to mebibytes if (ram_total > 0 && ram_used > 0) { - // data is in bytes + // data is in kibibytes ram_total /= 1024; ram_used /= 1024; break;