const e=e=>(null==e?void 0:e.total_space)&&(null==e?void 0:e.total_space)>0,t=e=>{let t=e.total_space,s=e.used_space;const a=["B","K","M","G","T","P","E"],o=1024;let c=0;for(;c<a.length-1&&(s>=o||t>=o);)s/=o,t/=o,c++;return`${s.toFixed(2)} / ${t.toFixed(2)} ${a[c]}`},s=e=>{if(!e.total_space||e.total_space<=0)return 0;const t=e.total_space,s=!e.used_space||e.used_space<=0?0:e.used_space;return s>=t?100:s/t*100},a=e=>e.free_space/e.total_space<.1;export{a as n,e as s,t,s as u};
