1
0
mirror of https://github.com/karl0ss/homepage.git synced 2025-05-10 08:51:32 +01:00

Fix glances fs metric for disks with colon ()

This commit is contained in:
shamoon 2023-10-09 19:43:03 -07:00 committed by GitHub
parent 7ea1d0dd47
commit 596e5c9b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@ export default function Component({ service }) {
const { t } = useTranslation();
const { widget } = service;
const { chart } = widget;
const [, fsName] = widget.metric.split(':');
const [, fsName] = widget.metric.split('fs:');
const { data, error } = useWidgetAPI(widget, 'fs', {
refreshInterval: 1000,