$self->{flags} = shift || Route::here(1);
$self->{users} = [];
$self->{nodes} = [];
- $self->{lastid} = {};
+ $self->{lastid} = 0;
$self->{PC92C_dxchan} = '';
$self->reset_obs; # by definition
$self->{obscount} = $obscount;
}
+sub measure_pc9x_t
+{
+ my $parent = shift;
+ my $t = shift;
+ my $lastid = $parent->{lastid};
+ if ($lastid) {
+ return ($t < $lastid) ? $t+86400-$lastid : $t - $lastid;
+ } else {
+ return 86400;
+ }
+}
+
sub DESTROY
{
my $self = shift;