luci-statistics: don't plot data points where there are no data.
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 14 Dec 2012 13:27:39 +0000 (13:27 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 14 Dec 2012 13:27:39 +0000 (13:27 +0000)
commit1461a0dba1dc17cbae0963be3149fd1e8fe99698
tree9ef6df5382f4e50b6ce5568891c38751943ae782
parent900515f0a6f63ae7b711de69e3a7c80735ca0259
luci-statistics: don't plot data points where there are no data.

Converting NaN to zero for the sake of the cumulative stack in non-overlay
mode is all very well. But we shouldn't then use that for displaying the
graph. Make another variable %s_plot which *preserves* NaN from the input
data, and then we don't get bogus data points drawn. Especially at the end
of the graph this was problematic.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
applications/luci-statistics/luasrc/statistics/rrdtool.lua