From 84e9559d2f28dd9e09751badf0168e760a172b39 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Mon, 25 May 2009 13:12:55 +0000 Subject: [PATCH] Minor status summary fix. * lysrdiff-status: Use -mtime instead of -ctime when computing the status summary, so that the info is correct even just after users have moved from one disk to another. --- ChangeLog | 7 +++++++ lysrdiff-status | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 26d105a..c9956e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-05-25 Per Cederqvist <ceder@shafan.lysator.liu.se> + + Minor status summary fix. + * lysrdiff-status: Use -mtime instead of -ctime when computing the + status summary, so that the info is correct even just after users + have moved from one disk to another. + 2008-12-04 Per Jonsson <poj@lysator.liu.se> Updated the config for Lysator. diff --git a/lysrdiff-status b/lysrdiff-status index 77fdb4f..5fac3f9 100755 --- a/lysrdiff-status +++ b/lysrdiff-status @@ -21,9 +21,9 @@ do mv -f $statecache.$disk.$part.$$ $statecache-$disk.$part echo -n $disk/$part':' echo -n ' 'Tasks: `wc -l < $base/tasks` - echo -n ' 'Fresh: `find $base/state -name \*--start -ctime 0 -print|wc -l` - echo -n ' '1day: `find $base/state -name \*--start -ctime 1 -print|wc -l` - echo -n ' 'Stale: `find $base/state -name \*--start -ctime +1 -print|wc -l` + echo -n ' 'Fresh: `find $base/state -name \*--start -mtime 0 -print|wc -l` + echo -n ' '1day: `find $base/state -name \*--start -mtime 1 -print|wc -l` + echo -n ' 'Stale: `find $base/state -name \*--start -mtime +1 -print|wc -l` echo -n ' 'Tot: `ls $base/state/*--end|wc -l` echo -n ' 'Warn: `find $base/state -name \*--warn -print|wc -l` echo ' 'Err: `ls $base/state/*--fail 2>/dev/null|wc -l` -- GitLab