From d8d2b36d2ef61bf56ded9a2e78b0eda8a9dd590a Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 18 Jan 2016 11:38:27 +0100 Subject: [PATCH] histogram stat bugfix --- core.lua | 2 +- stat_histogram.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index e22d93d..de2813b 100644 --- a/core.lua +++ b/core.lua @@ -1,4 +1,4 @@ -AuxVersion = '2.2.8' +AuxVersion = '2.2.9' AuxAuthors = 'shirsig; Zerf; Zirco (Auctionator); Nimeral (Auctionator backport)' local lastRightClickAction = GetTime() diff --git a/stat_histogram.lua b/stat_histogram.lua index ff551fa..82b659c 100644 --- a/stat_histogram.lua +++ b/stat_histogram.lua @@ -148,8 +148,7 @@ function private.refactor(pmax, precision) local new_step = ceil(pmax / precision) - if getn(private.current_record.values) == 0 then - private.current_record.step = new_step + if private.current_record.min == 0 then return end