mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
captive: Redesign generated coupons table
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -235,7 +235,13 @@ sub writehashpart
|
||||
sub age {
|
||||
my ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size,
|
||||
$atime, $mtime, $ctime, $blksize, $blocks) = stat $_[0];
|
||||
my $totalsecs = time() - $mtime;
|
||||
my $t = time() - $mtime;
|
||||
|
||||
return &format_time($t);
|
||||
}
|
||||
|
||||
sub format_time($) {
|
||||
my $totalsecs = shift;
|
||||
my @s = ();
|
||||
|
||||
my $secs = $totalsecs % 60;
|
||||
|
||||
Reference in New Issue
Block a user