changeset 1085:56fc7a86eb20

mod_statistics: prosodytop: Fix off-by-one error (thanks Zash)
author Matthew Wild <mwild1@gmail.com>
date Mon, 17 Jun 2013 16:06:18 +0100
parents 9612cea92503
children 50ee38e95e75
files mod_statistics/prosodytop.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_statistics/prosodytop.lua	Sat Jun 15 22:27:42 2013 +0100
+++ b/mod_statistics/prosodytop.lua	Mon Jun 17 16:06:18 2013 +0100
@@ -104,7 +104,7 @@
 		if lastpos == #data then
 			partial = nil;
 		else
-			partial = data:sub(lastpos+1);
+			partial = data:sub(lastpos);
 		end
 	end