Calculate remote backup media quota usage locally.

This commit is contained in:
Cody Henthorne
2025-06-06 10:47:32 -04:00
committed by Greyson Parrelli
parent efa9dd6ec3
commit 882a11c420
12 changed files with 119 additions and 37 deletions

View File

@@ -112,6 +112,10 @@ class ByteSize(val bytes: Long) {
return ByteSize(this.inWholeBytes - other.inWholeBytes)
}
operator fun times(other: Long): ByteSize {
return ByteSize(this.inWholeBytes * other)
}
enum class Size(val label: String) {
BYTE("B"),
KIBIBYTE("KB"),