X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Prune.php;h=42540652ce7094fefc8db3455a178c1366c10868;hb=7842706adb06d8bb9f8d48b935b92066d152b41b;hp=625e7d2458be816eeb60f979be7568ff8816094f;hpb=3a9f97db56f14572c046f3973e2ed7e5c009dbbb;p=Pman.Core 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";