]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
fix bug with downscaling in gnuplot 5
authorHADES DAQ <hadaq@gsi.de>
Mon, 23 Apr 2018 12:07:23 +0000 (14:07 +0200)
committerHadaq Hades <hadaq@lxhadesdaq>
Thu, 26 Apr 2018 11:16:16 +0000 (13:16 +0200)
tools/hadplot

index efd3fbb059c00d9a652bc8871a64ae5b6cb689c8..ca130e37c504b4a40e9bebe77b3cd5bf96ac1610 100755 (executable)
@@ -832,8 +832,8 @@ sub genhist {
   while(1) {
     my $a, my $s, my $t;
     my $val = 0 , my $time;
-    plot_storage_reset($storearr{0});
-    plot_write($plotstr);
+    plot_storage_reset($storearr{0}) if $storearr{0}->{"iteration"} % $storearr{0}->{"downscale"} == 0;
+    plot_write($plotstr) if $storearr{0}->{"iteration"} % $storearr{0}->{"downscale"} == 0;
     for(my $i = 0; $i<scalar(@{$address});$i++) {
       $val = 0;
       my $c = trb_registertime_read($address->[$i], $register->[$i]) or sleep 1 and print "Error\n" and next;