From: Jan Michel Date: Tue, 11 Apr 2017 08:31:33 +0000 (+0200) Subject: Update network map with new dirich serials X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=0362f592b374425e28cd9924ae72f51b64c451f9;p=daqtools.git Update network map with new dirich serials --- 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]; }