From 0362f592b374425e28cd9924ae72f51b64c451f9 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 11 Apr 2017 10:31:33 +0200 Subject: [PATCH] Update network map with new dirich serials --- base/serials_dirich_concentrator.db | 1 + web/htdocs/network/map.pl | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/base/serials_dirich_concentrator.db b/base/serials_dirich_concentrator.db index ad639d5..ed97313 100644 --- a/base/serials_dirich_concentrator.db +++ b/base/serials_dirich_concentrator.db @@ -1,5 +1,6 @@ # concentrator/combiner 0010 0xca00000712ac3228 0020 0x3c00000711e47628 + 0030 0xfd00000712ac3328 diff --git a/web/htdocs/network/map.pl b/web/htdocs/network/map.pl index 3b762c5..f9356fe 100755 --- a/web/htdocs/network/map.pl +++ b/web/htdocs/network/map.pl @@ -398,11 +398,10 @@ sub GetSerial { $file = "../base/serials_$file.db"; my $c = sprintf("grep %08x $file",$id); my $o = qx($c); + my @p = split(' ',$o); - - if($type == 0x90 || $type == 0x91 || $type == 0x95) { - $p[0] = substr($p[0],0,-1); - } + $p[0] = substr($p[0],0,-1); + $p[0] =~ s/^0+//; return $p[0]; } -- 2.43.0