mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 23:15:43 -06:00
feat: add file logs and logging view
This commit is contained in:
@@ -7,7 +7,7 @@ String formatMaxCount(int? count, [int maxCount = 99]) {
|
||||
return (count ?? 0).toString();
|
||||
}
|
||||
|
||||
String formatBytes(int bytes, int decimals) {
|
||||
String formatBytes(int bytes, [int decimals = 2]) {
|
||||
if (bytes <= 0) return "0 B";
|
||||
const suffixes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
||||
var i = (log(bytes) / log(1024)).floor();
|
||||
|
||||
Reference in New Issue
Block a user