From 6eb2fe6993f9ade6427cdc2c6128566be7514a16 Mon Sep 17 00:00:00 2001 From: dragondriver Date: Sat, 9 Oct 2021 19:35:02 +0800 Subject: [PATCH] [skip ci] Fix go lint warning of hardware_info.go (#9589) Signed-off-by: dragondriver --- internal/util/metricsinfo/hardware_info.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/util/metricsinfo/hardware_info.go b/internal/util/metricsinfo/hardware_info.go index 06dc56cefb..bc56d64897 100644 --- a/internal/util/metricsinfo/hardware_info.go +++ b/internal/util/metricsinfo/hardware_info.go @@ -73,12 +73,13 @@ func GetUsedMemoryCount() uint64 { } // TODO(dragondriver): not accurate to calculate disk usage when we use distributed storage + // GetDiskCount returns the disk count in bytes. func GetDiskCount() uint64 { return 100 * 1024 * 1024 } -// TODO(dragondriver): not accurate to calculate disk usage when we use distributed storage +// GetDiskUsage returns the disk usage in bytes. func GetDiskUsage() uint64 { return 2 * 1024 * 1024 }