scouting: Fix types for action timestamps and cycle times
Since we measure in nanoseconds (to be in line with what the robot
code does) we need a bigger type than `int32`. This patch changes
these fields to be `int64` instead.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: Ibffc37e74b333ae12330ab1c4fedd34879113a9d
diff --git a/scouting/webserver/requests/requests.go b/scouting/webserver/requests/requests.go
index 39f344e..6f83bfe 100644
--- a/scouting/webserver/requests/requests.go
+++ b/scouting/webserver/requests/requests.go
@@ -590,7 +590,7 @@
}
}
if cycles != 0 {
- stat.AvgCycle = int32(overall_time / cycles)
+ stat.AvgCycle = overall_time / cycles
} else {
stat.AvgCycle = 0
}