From a0667f85fa3d565503cb12fcaafa27ca64b5314f Mon Sep 17 00:00:00 2001 From: Ashutosh Dhundhara Date: Mon, 5 May 2014 11:44:14 +0530 Subject: [PATCH] Bug fix: #4384 Incorrect "Rows" total shown when truncating or dropping a table on DB Structure page. Signed-off-by: Ashutosh Dhundhara --- js/db_structure.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/db_structure.js b/js/db_structure.js index e480b81e08..56c4391e7c 100644 --- a/js/db_structure.js +++ b/js/db_structure.js @@ -64,8 +64,8 @@ function PMA_adjustTotals() { // If the value is approximated if (strRows.indexOf('~') === 0) { rowSumApproximated = true; - // The approximated value contains a preceding ~ and a following 2 (Eg 100 --> ~1002) - strRows = strRows.substring(1, strRows.length - 1); + // The approximated value contains a preceding ~ (Eg 100 --> ~100) + strRows = strRows.substring(1, strRows.length); } strRows = strRows.replace(/[,.]/g, ''); var intRow = parseInt(strRows, 10);