MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getSize

Function getSize

source/sdl/singleThreaded/mainloop.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static BString getSize(int pages)
36{
37 pages *= 4;
38 if (pages < 2048) {
39 return BString::valueOf(pages) + B("KB");
40 }
41 if (pages < 2048 * 1024) {
42 return BString::valueOf(pages / 1024) + B("MB");
43 }
44 return BString::valueOf(pages / 1024 / 1024) + B("GB");
45}
46extern int allocatedRamPages;
47bool doMainLoop() {
48 bool shouldQuit = false;

Callers 1

doMainLoopFunction · 0.70

Calls 1

BFunction · 0.85

Tested by

no test coverage detected