]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Update network map with new dirich serials
authorJan Michel <j.michel@gsi.de>
Tue, 11 Apr 2017 08:31:33 +0000 (10:31 +0200)
committerJan Michel <j.michel@gsi.de>
Tue, 11 Apr 2017 08:31:33 +0000 (10:31 +0200)
base/serials_dirich_concentrator.db
web/htdocs/network/map.pl

index ad639d53805ccb42ad0a39e536c37f79412c9782..ed97313ecce8ccf2afd74228db5bdd36b301fa83 100644 (file)
@@ -1,5 +1,6 @@
 # concentrator/combiner
    0010      0xca00000712ac3228
    0020      0x3c00000711e47628
+   0030      0xfd00000712ac3328
 
 
index 3b762c5a1e53889ed4a6844e3f3112f76a3bf990..f9356feccceb38a8fc2230a6d7924a827eea8486 100755 (executable)
@@ -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];
   }