]> git.refcnt.org Git - distdns.git/blobdiff - server.cgi
Record and list last updated time
[distdns.git] / server.cgi
index 43bf0bd302489dc30ffac9de781f7f3bd7e53837..c2df36ba3ab20da78e1d84e211cfa265ea70199f 100755 (executable)
@@ -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";