From 6a5f859101b271807b57c291baa31298d0e93724 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 21 Oct 2010 01:00:22 -0600 Subject: [PATCH] adjusted safety base-case loop size down to a reasonable limit --- hotplate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotplate.js b/hotplate.js index 7f0908c..62b835f 100644 --- a/hotplate.js +++ b/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;