From 2c479163d6d3653455e3fb6f4f2c5655e7bc353a Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Tue, 19 Jan 2016 05:20:09 +0100 Subject: [PATCH] tiny fix --- history.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/history.lua b/history.lua index fccda86..7aa82a0 100644 --- a/history.lua +++ b/history.lua @@ -96,7 +96,7 @@ function private.daily_market_value(histogram) for i, frequency in ipairs(histogram) do local limited_frequency = min(frequency, limit - count) sum = sum + 1.1 ^ (i - 1) * 1.05 * limited_frequency - count = count + frequency + count = count + limited_frequency if count >= limit then break end