Diff

mod_statistics/prosodytop.lua @ 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
parent 1072:4dbdb1b465e8
child 1343:7dbde05b48a9
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