mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
SVG/FileLog: remove the limit of 8 lines per Plot
git-svn-id: https://svn.fhem.de/fhem/trunk@7409 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cf2a66465c
commit
8073881d3d
@ -947,7 +947,6 @@ FileLog_sampleDataFn($$$$$)
|
||||
FileLog_addTics($conf->{y2tics}, \%tickh);
|
||||
$colnums = join(",", sort keys %tickh).",$colnums" if(%tickh);
|
||||
|
||||
$max = 8 if($max > 8);
|
||||
my @htmlArr;
|
||||
for(my $r=0; $r < $max; $r++) {
|
||||
my @f = split(":", ($flog->[$r] ? $flog->[$r] : ":::"), 4);
|
||||
|
@ -314,7 +314,6 @@ SVG_PEdit($$$$)
|
||||
$ret .= "</tr>";
|
||||
|
||||
my $max = @{$conf{lType}}+1;
|
||||
$max = 8 if($max > 8);
|
||||
my ($desc, $htmlArr, $example) = ("Spec", undef, "");
|
||||
if($modules{$ldt}{SVG_sampleDataFn}) {
|
||||
no strict "refs";
|
||||
@ -474,11 +473,12 @@ SVG_WriteGplot($)
|
||||
return 0;
|
||||
}
|
||||
|
||||
my $hasTl;
|
||||
for(my $i=0; $i <= 8; $i++) {
|
||||
$hasTl = 1 if($FW_webArgs{"title_$i"});
|
||||
my $maxLines = 0;
|
||||
foreach my $i (keys %FW_webArgs) {
|
||||
next if($i !~ m/^title_(.*)$/);
|
||||
$maxLines = $1 if($1 > $maxLines);
|
||||
}
|
||||
return 0 if(!$hasTl);
|
||||
return 0 if(!$maxLines);
|
||||
|
||||
my $fName = $FW_webArgs{gplotName};
|
||||
return if(!$fName);
|
||||
@ -503,7 +503,7 @@ SVG_WriteGplot($)
|
||||
|
||||
my $ld = $FW_webArgs{logdevicetype};
|
||||
my @plot;
|
||||
for(my $i=0; $i <= 8; $i++) {
|
||||
for(my $i=0; $i <= $maxLines; $i++) {
|
||||
next if(!$FW_webArgs{"title_$i"});
|
||||
my $prf = "par_${i}_";
|
||||
my @v = map {$FW_webArgs{"$prf$_"}}
|
||||
|
Loading…
Reference in New Issue
Block a user