my $period = $setup[$active]->{period};
my $name = $setup[$active]->{name};
my ($cmdMod,$cmdAddr,$cmdReg) = split('-',$setup[$active]->{cmd});
- my $israte = $setup[$active]->{rate};
- my $iscache = $setup[$active]->{cache};
- my $isfold = $setup[$active]->{fold};
- my $isinline= $setup[$active]->{inline};
+ my $israte = $setup[$active]->{rate}?"checked":"";
+ my $iscache = $setup[$active]->{cache}?"checked":"";
+ my $isfold = $setup[$active]->{fold}?"checked":"";
+ my $isinline= $setup[$active]->{inline}?"checked":"";
$getscript = $page->{getscript};
if(!defined $getscript) {
$setup[2]->{name} = "Scalers";
$setup[2]->{cmd} = "TriggerBox-0xfe69-Scalers";
-$setup[2]->{period} = -1;
-
+$setup[2]->{period} = 1000;
+$setup[2]->{rate} = 1;
+$setup[2]->{cache} = 1;
xmlpage::initPage(\@setup,$page);
use File::chdir;
use FindBin qw($RealBin);
use Data::Dumper;
-use Storable qw(lock_store);
+use Storable qw(store);
# some default config options
# and provide nice help documentation
}
#print DumpTree($db);
my $cachefile = "cache/$name.entity";
- lock_store($db, $cachefile);
+ store($db, $cachefile);
print STDERR "Wrote $cachefile\n" if $verbose>0;
# print STDERR "\n",DumpTree($db,$name),"\n" if $verbose>2;
}