next if $2 >= 8;
my $v = hex($4);
$v -= 0x100000 if $v >= 0x80000;
- $values->[$1*8+$2] += $v/1000.;
- $count->[$1*8+$2]++;
+ $values->[$1*8+$2] = $v/1000.;
+# $count->[$1*8+$2]++;
$values->[$1*8+$2] = undef if $3;
}
}
-for (my $i = 0; $i < scalar @{$values};$i++){
- $values->[$i] = $values->[$i] / $count->[$i] if defined $values->[$i];
- }
+#for (my $i = 0; $i < scalar @{$values};$i++){
+# $values->[$i] = $values->[$i] / $count->[$i] if defined $values->[$i];
+# }
defineScale($values);
print "
<div class=\"sensor\" id=\"$f[0].$f[1]\" style=\"left:".($f[3]*20)."px;top:".($f[2]*20)."px;background:".findcolor($values->[$f[0]*8+$f[1]],$min,$max)."\">
<div class=\"value\">$val</div>
- <div class=\"sid\">$f[0].$f[1]/".($count->[$f[0]*8+$f[1]]||0)."</div>
+ <div class=\"sid\">$f[0].$f[1]</div>
<div class=\"name\">$f[4]</div>
</div>
- ";
+ ";##/($count->[$f[0]*8+$f[1]]||0)
}
}