not very clean

This commit is contained in:
Aidan
2025-09-11 11:39:40 -05:00
committed by GitHub
parent 5eadb8d717
commit f24c1e3432

View File

@@ -210,9 +210,9 @@ static func format_bytes(given_size: int) -> String:
if given_size < 1024: if given_size < 1024:
return str(given_size) + " B" return str(given_size) + " B"
elif given_size < 1024 * 1024: elif given_size < 1024 * 1024:
return str(given_size / 1024.0) + " KB" return str(given_size / 1024) + " KB"
else: else:
return str(given_size / (1024.0 * 1024.0)) + " MB" return str(given_size / (1024.0 * 1024)) + " MB"
func get_time_display() -> String: func get_time_display() -> String:
if status == RequestStatus.PENDING: if status == RequestStatus.PENDING: