forgot about that
This commit is contained in:
parent
64069bfc33
commit
6a3a8102cb
1 changed files with 5 additions and 4 deletions
|
@ -12,7 +12,7 @@ const minio = new Minio.Client({
|
||||||
|
|
||||||
export default minio;
|
export default minio;
|
||||||
|
|
||||||
export const BUCKET = env.MINIO_BUCKET;
|
export const BUCKET = building ? 'building' : env.MINIO_BUCKET;
|
||||||
|
|
||||||
export let USAGE = writable(0);
|
export let USAGE = writable(0);
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ function du() {
|
||||||
stream.on('end', () => USAGE.set(usage));
|
stream.on('end', () => USAGE.set(usage));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!building) {
|
||||||
du();
|
du();
|
||||||
|
|
||||||
setTimeout(du, 1000 * 60 * 10);
|
setTimeout(du, 1000 * 60 * 10);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue