From 28bfa13e8857724ad09a4041cab03ac2a48d70d7 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 6 Feb 2022 23:22:57 +0000 Subject: [PATCH] fix prior git-svn-id: svn://kolibrios.org@9694 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/misc/osupdate.c | 4 ++-- programs/cmm/sysmon/sysmon.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/cmm/misc/osupdate.c b/programs/cmm/misc/osupdate.c index f468299018..af974d169c 100644 --- a/programs/cmm/misc/osupdate.c +++ b/programs/cmm/misc/osupdate.c @@ -145,12 +145,12 @@ signed CheckFreeSpace(dword _latest, _combined) DIR_SIZE dir_size; dir_size.get("/sys"); - cur_size = dir_size.bytes; + cur_size = dir_size.sizelo; copyf("/sys", _combined); copyf(_latest, _combined); dir_size.get(_combined); - new_size = dir_size.bytes; + new_size = dir_size.sizelo; empty = GetFreeSpaceOfRamdisk(); diff --git a/programs/cmm/sysmon/sysmon.c b/programs/cmm/sysmon/sysmon.c index d90ceabbc1..d1e5f11998 100644 --- a/programs/cmm/sysmon/sysmon.c +++ b/programs/cmm/sysmon/sysmon.c @@ -310,9 +310,9 @@ dword GetTmpDiskFreeSpace(int _id) DIR_SIZE dir_size; sprintf(#param, "/tmp%i/1", _id); dir_size.get(#param); - dir_size.bytes += dir_size.files/2 + 32 * 512; //file attr size + FAT table size - dir_size.bytes /= 1024*1024; //convert to MiB - return dir_size.bytes; + dir_size.sizelo += dir_size.files/2 + 32 * 512; //file attr size + FAT table size + dir_size.sizelo /= 1024*1024; //convert to MiB + return dir_size.sizelo; } void MonitorTmp()