less logging
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-04 15:46:08 +10:00
parent 8f4765980a
commit e2a26ca579

View File

@@ -205,12 +205,12 @@ func AvgChart(f *excelize.File, worksheetName string, location string, avgCpuCol
// Find the column that matches, add one to account for the date column
col = slices.Index(avgCpuColumns, pool) + 1
fmt.Printf("Pool: %s, column: %d\n", pool, col)
//fmt.Printf("Pool: %s, column: %d\n", pool, col)
// Type assertion to confirm that poolKv.Value is a map[string]interface{}
if dateMap, ok := poolKv.Value.(map[string]interface{}); ok {
for date, val := range dateMap {
fmt.Printf("Date: %s, Value: %v\n", date, val)
//fmt.Printf("Date: %s, Value: %v\n", date, val)
// Find the correct row, add one to account for sheet heading
row = slices.Index(dataDates, date) + 1