use the correct module name for _upd_user_rec
# periodic processing (every second)
#
-my $lastmin = 0;
+my $lastmin = time;
sub process
{
$daystart = $main::systime - ($main::systime % 86400);
}
if ($main::systime >= $lastmin + 60) {
- if ($lastmin) {
- per_minute();
- $lastmin = $main::systime;
- }
+ per_minute();
+ $lastmin = $main::systime;
}
}
my $ur = Route::get($user);
unless ($ur) {
my @ref;
- my $uref = DXUser->get_current($user) || Thingy::Hello::_upd_user_rec($user, $origin)->put;
+ my $uref = DXUser->get_current($user) || Thingy::Rt::_upd_user_rec($user, $origin)->put;
if ($uref->is_node || $uref->is_aranea) {
push @ref, $nref->add($user, $thing->{v}, $thing->{h});
push @{$thing->{pc19n}}, @ref if @ref;