Triple-C marketplace: agents, skills, commands, hooks and plugins for all or individual containers #65

Merged
jknapp merged 48 commits from feat/marketplace into main 2026-09-27 23:43:27 +00:00
Showing only changes of commit 973e51f969 - Show all commits
+2 -2
View File
@@ -53,9 +53,9 @@ pub enum ReadError {
pub(crate) fn describe_size(bytes: u64) -> String { pub(crate) fn describe_size(bytes: u64) -> String {
const KIB: u64 = 1024; const KIB: u64 = 1024;
const MIB: u64 = 1024 * 1024; const MIB: u64 = 1024 * 1024;
if bytes >= MIB && bytes % MIB == 0 { if bytes >= MIB && bytes.is_multiple_of(MIB) {
format!("{} MiB", bytes / MIB) format!("{} MiB", bytes / MIB)
} else if bytes >= KIB && bytes % KIB == 0 { } else if bytes >= KIB && bytes.is_multiple_of(KIB) {
format!("{} KiB", bytes / KIB) format!("{} KiB", bytes / KIB)
} else { } else {
format!("{} bytes", bytes) format!("{} bytes", bytes)