about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xara.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/ara.pl b/ara.pl
index 93656a4..cabb69f 100755
--- a/ara.pl
+++ b/ara.pl
@@ -66,7 +66,7 @@ my $file_ctime;
 # If $file exists then get mtime.
 if ( -e $file ) {
     my $file_stat = path($file)->stat;
-    $file_ctime = Time::Moment->from_epoch( $file_stat->[10] );
+    $file_ctime = Time::Moment->from_epoch( $file_stat->ctime );
 } else {
     warn "File '$file' doesn't exist\nFetching latest...\n"
         if $use_local_file;