2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

Added ranges 0.01 and 0.1

git-svn-id: https://svn.fhem.de/fhem/trunk@1819 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-08-30 16:25:15 +00:00
parent dba0fb5654
commit a9bcf6397f

View File

@ -303,8 +303,9 @@ SVG_render($$$$$$$$)
my $dh = $hmax{$axis} - $hmin{$axis};
my ($step, $mi, $ma) = (1, 1, 1);
my @limit = (1,2,5,10,20,50,100,200,500,1000,2000,5000,10000,
20000,50000,100000,200000,500000,1000000,2000000);
my @limit = (0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 20, 50, 100,
200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000,
200000, 500000, 1000000, 2000000);
for my $li (0..int(@limit)-1) {
my $l = $limit[$li];
next if($dh > $l);