From 7842706adb06d8bb9f8d48b935b92066d152b41b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 4 Oct 2018 12:38:56 +0800 Subject: [PATCH] Prune.php --- Prune.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Prune.php b/Prune.php index 625e7d24..42540652 100644 --- a/Prune.php +++ b/Prune.php @@ -79,6 +79,9 @@ class Pman_Core_Prune extends Pman */ DB_DataObject::debugLevel(1); + $f = DB_DataObject::Factory('Events'); + $before = $f->count(); + $f = DB_DataObject::Factory('Events'); $f->selectAdd(); $f->selectAdd("on_id, on_table, min(id) as min_id, max(id) as max_id, count(*) as mm"); @@ -104,7 +107,9 @@ class Pman_Core_Prune extends Pman "); } - + $f = DB_DataObject::Factory('Events'); + $after = $f->count(); + echo "DELETED : " . ($before - $after) . " records\n"; -- 2.39.2