MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / bytesToMB

Function bytesToMB

3ds/source/transferstatus.cpp:151–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 std::string bytesToMB(u64 done, u64 total)
152 {
153 char buf[48];
154 snprintf(buf, sizeof(buf), "%.1f / %.1f MB", (double)done / (1024.0 * 1024.0), (double)total / (1024.0 * 1024.0));
155 return std::string(buf);
156 }
157}

Callers 2

drawBottomMethod · 0.70
drawTopMethod · 0.70

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected