From: Alan Knowles Date: Thu, 4 Oct 2018 04:38:56 +0000 (+0800) Subject: Prune.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=7842706adb06d8bb9f8d48b935b92066d152b41b Prune.php --- 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";