| 319 | } |
| 320 | |
| 321 | void getSizeString(char string[16], uint64_t size) { |
| 322 | double double_size = (double)size; |
| 323 | |
| 324 | int i = 0; |
| 325 | static char *units[] = { "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" }; |
| 326 | while (double_size >= 1024.0) { |
| 327 | double_size /= 1024.0; |
| 328 | i++; |
| 329 | } |
| 330 | |
| 331 | snprintf(string, 16, "%.*f %s", (i == 0) ? 0 : 2, double_size, units[i]); |
| 332 | } |
| 333 | |
| 334 | void convertUtcToLocalTime(SceDateTime *time_local, SceDateTime *time_utc) { |
| 335 | SceRtcTick tick; |
no outgoing calls
no test coverage detected