Skip to content

Commit 5b6514a

Browse files
committed
Do eet
1 parent 2812fa3 commit 5b6514a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/scribe_server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ exports.run = function(emitter, port, host) {
8383
if (num === 0) {
8484
sample = 0;
8585
} else {
86-
sample = DESIRED_RATE / num / ((INTERVAL_MS / 1000));
86+
sample = Math.max(DESIRED_RATE / num / ((INTERVAL_MS / 1000)), 1);
8787
console.log('Sample size ' + sample);
8888
}
8989
resetList();

0 commit comments

Comments
 (0)