X-Git-Url: http://git.refcnt.org/?p=distdns.git;a=blobdiff_plain;f=server.cgi;h=c2df36ba3ab20da78e1d84e211cfa265ea70199f;hp=43bf0bd302489dc30ffac9de781f7f3bd7e53837;hb=eb97e893a835f728f4bff344d937d0b1813f711e;hpb=3f79b3088e5eaa6185822f26c21a3b5e8548e60e diff --git a/server.cgi b/server.cgi index 43bf0bd..c2df36b 100755 --- a/server.cgi +++ b/server.cgi @@ -134,6 +134,7 @@ if (exists $access{$params{name}} && grep /^$params{pc}$/i, @{$access{$params{na } } push @$data, { map { $_ => $params{$_} } qw(netz pc name ip) }; + $data->[-1]->{time} = time; seek($fh, 0, 0) or die "Cannot seek to start of $json_file: $!\n"; truncate($fh, 0) or die "Cannot truncate $json_file: $!\n";