Removed leftover dev comments

This commit is contained in:
Dionysus 2024-11-29 03:21:02 -05:00
parent 1992593b01
commit 2bc93bf707
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -704,8 +704,8 @@ func main() {
diskAvailable := int64(0) diskAvailable := int64(0)
if len(nodeStats.FS.Data) > 0 { if len(nodeStats.FS.Data) > 0 {
// Use the first data path's stats - this is the Elasticsearch data directory // Use the first data path's stats - this is the Elasticsearch data directory
diskTotal = nodeStats.FS.Data[0].TotalInBytes // e.g. 5.6TB for r320-1 diskTotal = nodeStats.FS.Data[0].TotalInBytes
diskAvailable = nodeStats.FS.Data[0].AvailableInBytes // e.g. 5.0TB available diskAvailable = nodeStats.FS.Data[0].AvailableInBytes
} else { } else {
// Fallback to total stats if data path stats aren't available // Fallback to total stats if data path stats aren't available
diskTotal = nodeStats.FS.Total.TotalInBytes diskTotal = nodeStats.FS.Total.TotalInBytes