This commit is contained in:
4
main.go
4
main.go
@@ -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
|
||||
|
Reference in New Issue
Block a user