elastop- Unnamed repository; edit this file 'description' to name the repository. |
git clone git://git.acid.vegas/-c.git |
Log | Files | Refs | Archive | README | LICENSE |
commit 2bc93bf707b72412bba906c7ec951cc735213684
parent 1992593b01202d96f2f252891a6f2f861aee8cc9 Author: acidvegas <acid.vegas@acid.vegas> Date: Fri, 29 Nov 2024 03:21:02 -0500 Removed leftover dev comments Diffstat:
|
1 file changed, 2 insertions(+), 2 deletions(-) |
diff --git a/elastop.go b/elastop.go @@ -704,8 +704,8 @@ func main() { diskAvailable := int64(0) if len(nodeStats.FS.Data) > 0 { // 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 - diskAvailable = nodeStats.FS.Data[0].AvailableInBytes // e.g. 5.0TB available + diskTotal = nodeStats.FS.Data[0].TotalInBytes + diskAvailable = nodeStats.FS.Data[0].AvailableInBytes } else { // Fallback to total stats if data path stats aren't available diskTotal = nodeStats.FS.Total.TotalInBytes |