diff --git a/controller/api/collector_blueprint.py b/controller/api/collector_blueprint.py index e794229..7dfcd85 100644 --- a/controller/api/collector_blueprint.py +++ b/controller/api/collector_blueprint.py @@ -52,6 +52,7 @@ def _better_size_unit(bytes: int) -> str: def collect_basic_status(): return jsonify({ 'disk': { + 'work': _get_disk_info(os.path.abspath(".")), 'bili': _get_disk_info(BILILIVE_RECORDER_DIRECTORY), 'xigua': _get_disk_info(XIGUALIVE_RECORDER_DIRECTORY) }, diff --git a/templates/index.html b/templates/index.html index d1d5eb3..5b25b86 100644 --- a/templates/index.html +++ b/templates/index.html @@ -118,24 +118,32 @@
目录配置 | +目录 | ||
B站录播姬目录 | -{{ config.recorder.bili_dir }} | +工作目录 | +~ |
使用率 {{ collector.basic.disk.bili.percent }}% | ++ | {{ collector.basic.disk.work.free }} / {{ collector.basic.disk.work.total }} | +|
B站录播姬目录 | +{{ config.recorder.bili_dir }} | +||
{{ collector.basic.disk.bili.free }} / {{ collector.basic.disk.bili.total }} | |||
西瓜视频录播目录 | -{{ config.recorder.xigua_dir }} | +西瓜视频录播目录 | +{{ config.recorder.xigua_dir }} |
使用率 {{ collector.basic.disk.bili.percent }}% | +{{ collector.basic.disk.xigua.free }} / {{ collector.basic.disk.xigua.total }} |