Skip to content

Commit 1f557b5

Browse files
committed
primer
1 parent 73b4e40 commit 1f557b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tracky/src/trackeroo/driving.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (rs *RoutingService) GetRoute(from, to Coordinate) ([]RouteSegment, error)
145145
}
146146

147147
func getConsumption(speed float64, devType string) float64 {
148-
if speed == 0 {
148+
if speed <= 5.0 {
149149
return 0.0
150150
}
151151
threshold := 80.0

0 commit comments

Comments
 (0)