mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 06:23:16 +00:00
Export getDiskUsage
This commit is contained in:
parent
ae21160e5f
commit
3f0c0ec63f
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ export async function checkDiskUtilization(params, archiveDirSize) {
|
|||
};
|
||||
}
|
||||
|
||||
async function getDiskUsage(path="/crawls") {
|
||||
export async function getDiskUsage(path="/crawls") {
|
||||
const exec = util.promisify(child_process.exec);
|
||||
const result = await exec(`df ${path}`);
|
||||
const lines = result.stdout.split("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue