mirror of https://github.com/coolaj86/fizzbuzz.git
adjusted safety base-case loop size down to a reasonable limit
This commit is contained in:
parent
57a8b8d5bd
commit
6a5f859101
|
@ -85,7 +85,7 @@ var HotPlate = {};
|
||||||
// 0.000000000000001 is the lowest you can go. If you try zero it will run forever (IEEE floating-point errors?)
|
// 0.000000000000001 is the lowest you can go. If you try zero it will run forever (IEEE floating-point errors?)
|
||||||
repeat = true, // if the base condition has yet to be met
|
repeat = true, // if the base condition has yet to be met
|
||||||
count = 0, // safeguard in case the base-case logic is incorrect
|
count = 0, // safeguard in case the base-case logic is incorrect
|
||||||
max_count = 10000000000000000;
|
max_count = 15000;
|
||||||
|
|
||||||
while (true === repeat && count < max_count) {
|
while (true === repeat && count < max_count) {
|
||||||
variance = 0;
|
variance = 0;
|
||||||
|
|
Loading…
Reference in New Issue