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

Function bytesToMB

switch/source/transferstatus.cpp:163–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 std::string bytesToMB(u64 done, u64 total)
164 {
165 char buf[48];
166 snprintf(buf, sizeof(buf), "%.1f / %.1f MB", (double)done / (1024.0 * 1024.0), (double)total / (1024.0 * 1024.0));
167 return std::string(buf);
168 }
169}

Callers 2

drawMethod · 0.70
drawMethod · 0.70

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected