Switch to side-by-side view

--- a/controllers/controllerV0.js
+++ b/controllers/controllerV0.js
@@ -173,13 +173,13 @@
 	var handler = "backend.controllers.getStatistics";
 	logger.info("Starting: ",handler);  
 	ruleid = req.params.ruleid;
-	database.retrieveStatisticsList(ruleid, function(isOK, rows){
-		if(!isOK) {
-			logger.info(handler,rows);
-			sendResponse(500, {success:false, data:rows},"Get Statistics: "+rows,res);
-		}else {
-			logger.info(handler,rows);
-			sendResponse(200, {success: true, data:rows},"Get Statistics: Success",res);
+	database.retrieveStatisticsList(ruleid, function(isOK, rows, total){
+		if(!isOK) {
+			logger.info(handler,rows);
+			sendResponse(500, {success:false, data:rows,total},"Get Statistics: "+rows,res);
+		}else {
+			logger.info(handler,rows);
+			sendResponse(200, {success: true, data:rows,total},"Get Statistics: Success",res);
 		}
 	});
 };