mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Fix glances fs metric for disks with colon (#2170)
This commit is contained in:
parent
7ea1d0dd47
commit
596e5c9b84
@ -10,7 +10,7 @@ export default function Component({ service }) {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { widget } = service;
|
const { widget } = service;
|
||||||
const { chart } = widget;
|
const { chart } = widget;
|
||||||
const [, fsName] = widget.metric.split(':');
|
const [, fsName] = widget.metric.split('fs:');
|
||||||
|
|
||||||
const { data, error } = useWidgetAPI(widget, 'fs', {
|
const { data, error } = useWidgetAPI(widget, 'fs', {
|
||||||
refreshInterval: 1000,
|
refreshInterval: 1000,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user