forgot about that

This commit is contained in:
cirroskais 2024-07-05 23:37:42 -04:00
parent 64069bfc33
commit 6a3a8102cb
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D

View file

@ -12,7 +12,7 @@ const minio = new Minio.Client({
export default minio;
export const BUCKET = env.MINIO_BUCKET;
export const BUCKET = building ? 'building' : env.MINIO_BUCKET;
export let USAGE = writable(0);
@ -23,6 +23,7 @@ function du() {
stream.on('end', () => USAGE.set(usage));
}
if (!building) {
du();
setTimeout(du, 1000 * 60 * 10);
}