Skip to content
Snippets Groups Projects

Dev branch

Merged Odin Aas requested to merge dev-branch into main
4 files
+ 4
27
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -93,7 +93,7 @@ func sortData(machines []other.MachineDetails, interval int64, since int64, star
}
//loop over each machine using a for loop
for k := range machines {
quickSort(machines[k].SensorDataList, 0, len(machines[k].SensorDataList)-1)
//quickSort(machines[k].SensorDataList, 0, len(machines[k].SensorDataList)-1)
var packetList []other.SensorData //new list of packets
var tempPacketList []other.SensorData //temporary list of packets, to make sure it is averaged correctly
@@ -102,7 +102,6 @@ func sortData(machines []other.MachineDetails, interval int64, since int64, star
for _, tInterval := range intervalList {
for i < len(machines[k].SensorDataList) {
//println(i)
if machines[k].SensorDataList[i].DateTime.Before(startTime) { //if the packet has not yet reached the start time, go to next packet
i++
continue
Loading