summaryrefslogtreecommitdiffhomepage
path: root/Private/NewKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-04 13:38:10 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-04 13:38:10 +0200
commitfd7b08906adf40b81f3ac758ca55da501cb2283d (patch)
treeb8e663df7ec15620b12687481f28174139cede30 /Private/NewKit
parentae3555797c741edc7bac5d464e8f48774663043b (diff)
MHR-23: patches and fixes, also restricted disks to at least have 10G of
free space. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewKit')
-rw-r--r--Private/NewKit/Macros.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Private/NewKit/Macros.hpp b/Private/NewKit/Macros.hpp
index f2094c87..6fe25fdf 100644
--- a/Private/NewKit/Macros.hpp
+++ b/Private/NewKit/Macros.hpp
@@ -7,19 +7,19 @@
#pragma once
#ifndef KIB
-#define KIB(X) ((X) << 10)
+#define KIB(X) ((X) / 1024)
#endif
#ifndef MIB
-#define MIB(X) ((UInt64)KIB(X) << 20)
+#define MIB(X) ((UInt64)KIB(X) / 1024)
#endif
#ifndef GIB
-#define GIB(X) ((UInt64)MIB(X) << 30)
+#define GIB(X) ((UInt64)MIB(X) / 1024)
#endif
#ifndef TIB
-#define TIB(X) ((UInt64)GIB(X) << 40)
+#define TIB(X) ((UInt64)GIB(X) / 1024)
#endif
#ifndef ARRAY_SIZE