use printfv and printfnq

This commit is contained in:
Evan Prodromou 2012-03-08 07:49:30 -06:00
parent 259acbf966
commit b35fdf13c1

View File

@ -58,6 +58,8 @@ function testAllUsers() {
function testUser($filter, $user) {
printfnq("Testing user %s\n", $user->nickname);
$profile = $user->getProfile();
$str = new ProfileNoticeStream($profile, $profile);
@ -68,10 +70,10 @@ function testUser($filter, $user) {
do {
$notice = $str->getNotices($offset, $limit);
while ($notice->fetch()) {
print "Testing notice " . $notice->id . "...";
printfv("Testing notice %d...", $notice->id);
$result = $filter->test($notice);
Spam_score::save($notice, $result);
print (($result->isSpam) ? "SPAM" : "HAM")."\n";
printfv("%s\n", ($result->isSpam) ? "SPAM" : "HAM");
}
$offset += $notice->N;
} while ($notice->N > 0);