Index: trunk/extensions/FlaggedRevs/language/ValidationStatistics.i18n.php |
— | — | @@ -19,6 +19,7 @@ |
20 | 20 | 'validationstatistics-stable' => 'Reviewed', |
21 | 21 | 'validationstatistics-latest' => 'Latest reviewed', |
22 | 22 | 'validationstatistics-synced' => 'Synced/Reviewed', |
| 23 | + 'validationstatistics-old' => 'Outdated', |
23 | 24 | ); |
24 | 25 | |
25 | 26 | /** Message documentation (Message documentation) */ |
Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | $wgOut->addWikiText( wfMsg('validationstatistics-table') ); |
34 | 34 | $wgOut->addHTML( "<table class='wikitable flaggedrevs_stats_table'>\n" ); |
35 | 35 | $wgOut->addHTML( "<tr>\n" ); |
36 | | - $msgs = array("ns","total","stable","latest","synced"); // our headings |
| 36 | + $msgs = array("ns","total","stable","latest","synced","old"); // our headings |
37 | 37 | foreach( $msgs as $msg ) { |
38 | 38 | $wgOut->addHTML( "<th>".wfMsg("validationstatistics-$msg")."</th>" ); |
39 | 39 | } |
— | — | @@ -46,6 +46,8 @@ |
47 | 47 | $percRev = @sprintf( '%4.2f', 100*intval($row->reviewed)/intval($row->total) ); |
48 | 48 | $percLatest = @sprintf( '%4.2f', 100*intval($row->synced)/intval($row->total) ); |
49 | 49 | $percSynced = @sprintf( '%4.2f', 100*intval($row->synced)/intval($row->reviewed) ); |
| 50 | + $outdated = intval($row->reviewed) - intval($row->synced); |
| 51 | + $outdated = max( 0, $outdated ); // lag between queries |
50 | 52 | |
51 | 53 | $wgOut->addHTML( "<tr align='center'>" ); |
52 | 54 | $wgOut->addHTML( "<td>$NsText</td>" ); |
— | — | @@ -53,6 +55,7 @@ |
54 | 56 | $wgOut->addHTML( "<td>{$row->reviewed} <i>($percRev%)</i></td>" ); |
55 | 57 | $wgOut->addHTML( "<td>{$row->synced} <i>($percLatest%)</i></td>" ); |
56 | 58 | $wgOut->addHTML( "<td>$percSynced%</td>" ); |
| 59 | + $wgOut->addHTML( "<td>".$outdated."</td>" ); |
57 | 60 | $wgOut->addHTML( "</tr>" ); |
58 | 61 | } |
59 | 62 | $wgOut->addHTML( "</table>" ); |