git-svn-id: https://svn.fhem.de/fhem/trunk@4703 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister
2014-01-20 23:40:02 +00:00
parent 5d75d51339
commit 8d575de50b

View File

@@ -1060,17 +1060,19 @@ sub SYSMON_ShowValuesHTML ($;@)
# oben definierte Werte anzeigen # oben definierte Werte anzeigen
foreach (@dataDescription) { foreach (@dataDescription) {
my($rName, $rComment, $rPostfix) = split(/:/, $_); my($rName, $rComment, $rPostfix) = split(/:/, $_);
if(!defined $rComment) { if(defined $rName) {
$rComment = $cur_readings_map->{$rName}; if(!defined $rComment) {
} $rComment = $cur_readings_map->{$rName};
my $rVal = $map->{$rName}; }
if($rName eq DATE) { my $rVal = $map->{$rName};
# Datum anzeigen if($rName eq DATE) {
$rVal = strftime("%d.%m.%Y %H:%M:%S", localtime()); # Datum anzeigen
} $rVal = strftime("%d.%m.%Y %H:%M:%S", localtime());
if(!defined $rPostfix) { $rPostfix = ""; } }
if(defined $rVal) { if(!defined $rPostfix) { $rPostfix = ""; }
$htmlcode .= "<tr><td valign='top'>".$rComment.":&nbsp;</td><td>".$rVal.$rPostfix."</td></tr>"; if(defined $rVal) {
$htmlcode .= "<tr><td valign='top'>".$rComment.":&nbsp;</td><td>".$rVal.$rPostfix."</td></tr>";
}
} }
} }