Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
draw
Method · 0.70
draw
Method · 0.70
Calls
1
string
Function · 0.85
Tested by
no test coverage detected