Skip to content
Snippets Groups Projects
Commit d10e8a4b authored by Odin Aas's avatar Odin Aas :cry:
Browse files

added print when overview

parent 188c050b
No related branches found
No related tags found
1 merge request!93added print when overview
Pipeline #26929 passed
......@@ -282,6 +282,7 @@ func setIntoDatasets(Machines []other.MachineDetails) other.OverviewData {
func createDataset(details other.MachineDetails) other.Dataset {
dataset := other.Dataset{Label: details.Machine.Name}
for _, data := range details.SensorDataList {
log.Println(data.AVGCurrent * float64(details.Machine.Voltage))
dataset.Data = append(dataset.Data, data.AVGCurrent*float64(details.Machine.Voltage))
}
return dataset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment