Changeset 1446


Ignore:
Timestamp:
11/01/15 23:13:16 (9 years ago)
Author:
nanardon
Message:

Report also hour to graph stat

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/Stat.pm

    r1443 r1446  
    6060    } 
    6161 
    62     my $date = POSIX::strftime('%Y-%m-%d', localtime); 
     62    my $date = POSIX::strftime('%Y-%m-%d %H:%M', localtime); 
    6363    foreach my $val (sort keys %$res) { 
    6464        push(@{ $lines{$val} }, [ $date , $res->{$val} + 0 ]); 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Stat.pm

    r1438 r1446  
    203203 
    204204    my $sth = $self->db->prepare(q{ 
    205         SELECT count, value, to_char(tstamp, 'YYYY-MM-DD') as d from statsentry join 
     205        SELECT count, value, to_char(tstamp, 'YYYY-MM-DD HH24:MI') as d from statsentry join 
    206206                      statvalues 
    207207            on statsentry.id = statvalues.sid 
Note: See TracChangeset for help on using the changeset viewer.