Skip to content

Commit 36b387d

Browse files
foxishdavixcky
authored andcommitted
Update server.go
1 parent 242ddfb commit 36b387d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/route/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (s *Server) FindRoute(ctx context.Context, req *FindRouteRequest) (*FindRou
7676
delay.Sleep(config.GetRouteCalcDelay(), config.GetRouteCalcStdDev())
7777

7878
// Generate a random number between 3 and 45 with decimals
79-
eta := time.Duration((rand.Float64()*(45-3) + 3) * float64(time.Second))
79+
eta := time.Duration((rand.Float64()*(3-45) + 3) * float64(time.Second))
8080
if os.Getenv("FAST_ROUTE") != "" {
8181
eta = time.Second
8282
}

0 commit comments

Comments
 (0)