修复MB/GB宏定义BUG

This commit is contained in:
gb 2024-01-29 15:45:09 +08:00
parent bfe7f47b5c
commit 0ad5a10dd5
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@
#endif #endif
#define SIZE_KB(n) ((n) * 1024) #define SIZE_KB(n) ((n) * 1024)
#define SIZE_MB(n) SIZE_KB(n * 1024) #define SIZE_MB(n) SIZE_KB((n) * 1024)
#define SIZE_GB(n) SIZE_MB(n * 1024) #define SIZE_GB(n) SIZE_MB((n) * 1024)
#define SEC_2_MS(s) ((s) * 1000) #define SEC_2_MS(s) ((s) * 1000)
#define MSEC_2_US(ms) ((ms) * 1000) #define MSEC_2_US(ms) ((ms) * 1000)