]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
changed scaling factor due to wrong frequency setting
authorJan Michel <j.michel@gsi.de>
Mon, 9 Dec 2013 17:21:06 +0000 (18:21 +0100)
committerJan Michel <j.michel@gsi.de>
Mon, 9 Dec 2013 17:21:06 +0000 (18:21 +0100)
web/htdocs/tools/scaler.pl

index c2ec2e3069062837727551d014414f75c4a6e7d9..6a45e2b4a0f4c104968435be35da6d893e9e92b9 100755 (executable)
@@ -27,7 +27,7 @@ if($ENV{'QUERY_STRING'} =~ /get/) {
   my $data = trb_registertime_read_mem(0x3820,0xc001,0,64) or die trb_strerror();
   my $delay = ($data->{0x3820}->{time}->[0]||0) - ($olddata->{0x3820}->{time}->[0]||0);
   $delay += 0x10000 if ($delay < 0);
-  $delay *= 16.;
+  $delay *= 16.*125/100;
   $delay = 1E6 if $delay == 0;
   print STDERR $delay." ".$data->{0x3820}->{time}->[0]."\n";
   my $rate;