Permalink
Browse files

adjusted safety base-case loop size down to a reasonable limit

  • Loading branch information...
1 parent 57a8b8d commit 6a5f859101b271807b57c291baa31298d0e93724 @coolaj86 committed Oct 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 hotplate.js
View
2 hotplate.js
@@ -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?)
repeat = true, // if the base condition has yet to be met
count = 0, // safeguard in case the base-case logic is incorrect
- max_count = 10000000000000000;
+ max_count = 15000;
while (true === repeat && count < max_count) {
variance = 0;

0 comments on commit 6a5f859

Please sign in to comment.