aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/nettkart-json.pl
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2015-04-04 23:54:34 +0200
committerKristian Lyngstol <kristian@bohemians.org>2015-04-04 23:54:34 +0200
commitcb6c034ef4d22579db21cd7d9b2d32b57601172a (patch)
treee639378a3ca11fbe18147a7a785cb55600481617 /web/nms.gathering.org/nettkart-json.pl
parentde837c61bfff05c368f4d5d73b16e57bf880f739 (diff)
MISC stuff people forgot
Diffstat (limited to 'web/nms.gathering.org/nettkart-json.pl')
-rwxr-xr-xweb/nms.gathering.org/nettkart-json.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/nms.gathering.org/nettkart-json.pl b/web/nms.gathering.org/nettkart-json.pl
index c218642..e95920e 100755
--- a/web/nms.gathering.org/nettkart-json.pl
+++ b/web/nms.gathering.org/nettkart-json.pl
@@ -43,8 +43,8 @@ while (my $ref = $q->fetchrow_hashref()) {
if ($traffic >= $min) {
$intensity = log($traffic / $min) / log(10);
- my $fudge1 = oct('0x'.substr(Digest::MD5::md5_hex($cgi->{'sysname'} . $cgi->param('secret')), 0, 8));
- my $fudge2 = oct('0x'.substr(Digest::MD5::md5_hex($cgi->{'sysname'} . $cgi->param('secret2')), 0, 8));
+ my $fudge1 = oct('0x'.substr(Digest::MD5::md5_hex($ref->{'sysname'} . $cgi->param('secret')), 0, 8));
+ my $fudge2 = oct('0x'.substr(Digest::MD5::md5_hex($ref->{'sysname'} . $cgi->param('secret2')), 0, 8));
$intensity += ($fudge1 + ($fudge2 - $fudge1) * $fade_time) * $noise;
$intensity = 4.0 if ($intensity > 4.0);