MCPcopy Create free account
hub / github.com/basecamp/omarchy / usageText

Function usageText

shell/plugins/panels/dropbox/Model.js:92–97  ·  view source on GitHub ↗
(usedBytes, quotaBytes, quotaKnown)

Source from the content-addressed store, hash-verified

90}
91
92function usageText(usedBytes, quotaBytes, quotaKnown) {
93 if (quotaKnown && Number(quotaBytes || 0) > 0) {
94 return formatBytes(usedBytes) + " of " + formatBytes(quotaBytes)
95 }
96 return formatBytes(usedBytes)
97}
98
99function relativeTime(timestampSec, nowMs) {
100 var ts = Number(timestampSec || 0)

Callers

nothing calls this directly

Calls 1

formatBytesFunction · 0.70

Tested by

no test coverage detected