]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Show size of package to upload to SF
authorLaurent Destailleur <eldy@destailleur.fr>
Thu, 18 Jun 2015 22:10:08 +0000 (00:10 +0200)
committerLaurent Destailleur <eldy@destailleur.fr>
Thu, 18 Jun 2015 22:10:08 +0000 (00:10 +0200)
make/makepack-awstats.pl

index 0099a0e730dc2759947b81f0adb6dec87690206c..e18ef960635c1cdd19c07549be921bdddb20d1a0 100755 (executable)
@@ -421,12 +421,15 @@ if ($nboftargetok) {
                "$DESTI/$FILENAMETGZ.tar.gz"=>'AWStats',
                "$DESTI/$FILENAMETGZ.zip"=>'AWStats'
        );
+       use POSIX qw/strftime/;
        foreach my $file (sort keys %filestoscansf)
        {
                $found=0;
-               my $filesize = -s $file;
-               print $file." ".($filesize?"(found)":"(not found)");
-               print ($filesize?" - ".$filesize:"");
+                       my $filesize = -s $file;
+                       my $filedate = (stat $file)[9];
+                       print $file." ".($filesize?"(found)":"(not found)");
+                       print ($filesize?" - ".$filesize:"");
+                       print ($filedate?" - ".strftime("%Y-%m-%d %H:%M:%S",localtime($filedate)):"");
                print "\n";
        }