@@ -29,6 +29,6 @@ export function createRandomRefreshInterval(options: {
|
||||
}): RefreshIntervalFunction {
|
||||
const { minSeconds, maxSeconds } = options;
|
||||
return () => {
|
||||
return Math.random() * (maxSeconds - minSeconds) + minSeconds;
|
||||
return Math.floor(Math.random() * (maxSeconds - minSeconds) + minSeconds);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user