]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Root.pm
Converted check/stats page
[ndwebbie.git] / lib / NDWeb / Controller / Root.pm
index 9bf0dd5faa64da1611df2dd56e03a6cec91d6de6..8b4240ad9618583f574211a180dc7a53d1a845cc 100644 (file)
@@ -110,6 +110,7 @@ sub auto : Private {
        $dbh->do(q{SET timezone = 'GMT'});
 
        $c->stash(TICK =>$dbh->selectrow_array('SELECT tick()',undef));
+       $c->stash(STICK =>$dbh->selectrow_array('SELECT max(tick) FROM planet_stats',undef));
        $c->stash->{game}->{tick} = $c->stash->{TICK};
 
        if ($c->user_exists){