about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-06-10 17:44:45 +0530
committerAndinus <andinus@nand.sh>2020-06-10 17:44:45 +0530
commitd3924ce89f0d0ebf54fe7c40d70b22f028e780db (patch)
tree66bb1b0da7a36dafd2e1962f70d2bc38b06424de
parent94bdc8e40d765ad087753edfa48bb061b087a761 (diff)
downloadara-d3924ce89f0d0ebf54fe7c40d70b22f028e780db.tar.gz
Use ->ctime instead of accessing the array directly
-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;