ready to stable

This commit is contained in:
Marko Oldenburg 2016-12-18 21:05:14 +01:00
parent a197f8e291
commit 2e11c5e732
2 changed files with 17 additions and 2 deletions

View File

@ -46,7 +46,7 @@ use JSON;
use HttpUtils; use HttpUtils;
my $version = "0.3.41"; my $version = "0.4.0";
@ -552,7 +552,22 @@ sub NUKIBridge_getLogfile($) {
foreach my $logs (@{$decode_json}) { foreach my $logs (@{$decode_json}) {
$ret .= '<tr class="odd">'; $ret .= '<tr class="odd">';
if($logs->{timestamp}) {
$ret .= "<td><b>timestamp:</b> </td>";
$ret .= "<td>$logs->{timestamp}</td>";
$ret .= '<td> </td>';
}
if($logs->{type}) {
$ret .= "<td><b>type:</b> </td>";
$ret .= "<td>$logs->{type}</td>";
$ret .= '<td> </td>';
}
foreach my $d (reverse sort keys %{$logs}) { foreach my $d (reverse sort keys %{$logs}) {
next if( $d eq "type" );
next if( $d eq "timestamp" );
$ret .= "<td><b>$d:</b> </td>"; $ret .= "<td><b>$d:</b> </td>";
$ret .= "<td>$logs->{$d}</td>"; $ret .= "<td>$logs->{$d}</td>";
$ret .= '<td> </td>'; $ret .= '<td> </td>';

View File

@ -33,7 +33,7 @@ use warnings;
use JSON; use JSON;
#use Time::HiRes qw(gettimeofday); #use Time::HiRes qw(gettimeofday);
my $version = "0.3.41"; my $version = "0.4.0";