Latest Posts head<= <=head body<= [1] - $stat->[2]) { my $rate_sec = $stat->[0] / $delta; my $rate_min = $rate_sec * 60; my $fmt_min = $rate_min > 10 ? "%.0f" : "%.2f"; my $rate_hour = $rate_min * 60; my $fmt_hour = $rate_hour > 10 ? "%.0f" : "%.2f"; my $post_min = sprintf($fmt_min, $rate_min); my $post_hour = sprintf($fmt_hour, $rate_hour); $ret .= "Current posting stats: $post_hour per hour, $post_min per minute\n"; } my @postids; foreach my $p (@$recent) { next unless $p->{security} eq 'public'; $p->{ditemid} = $p->{itemid}*256 + $p->{anum}; push @postids, [ $p->{clusterid}, $p->{journalu}{userid}, $p->{itemid} ]; } my $rawposts = LJ::get_posts_raw({memcache_only=>1}, @postids); $ret .= ""; $ret .= "
" . substr(scalar(gmtime($p->{timepost})), 4, 12) . " | "; $ret .= "\n";
$ret .= LJ::ljuser($up->{user});
if ($up->{userid} != $uj->{userid}) {
$ret .= " (in " . LJ::ljuser($uj->{user}, {type => $uj->{journaltype}}) . ")";
}
$ret .= ": \n"; $ret .= " ";
LJ::CleanHTML::clean_subject(\$subject);
LJ::CleanHTML::clean_event(\$body, {'cuturl' => LJ::item_link($uj, $p->{'itemid'}, $p->{'anum'})});
$ret .= "$subject \n" if $subject; $ret .= $body; $ret .= " |