diff --git a/AutoTx/AutoTx.cs b/AutoTx/AutoTx.cs
index dcebe5324d0095661a35bbd51fe0743363cb9e58..350c4ac74048f8fd9679c3c22bdbfc4895177be3 100644
--- a/AutoTx/AutoTx.cs
+++ b/AutoTx/AutoTx.cs
@@ -215,7 +215,7 @@ namespace AutoTx
 
             msg += "\n------ Grace location status ------\n";
             try {
-                msg += GraceLocationSummary();
+                msg += GraceLocationSummary(_config.GracePeriod);
             }
             catch (Exception ex) {
                 writeLog("CheckGraceLocation() failed: " + ex.Message, true);
@@ -921,7 +921,7 @@ namespace AutoTx
         }
 
         public void CheckGraceLocation() {
-            writeLogDebug(GraceLocationSummary());
+            writeLogDebug(GraceLocationSummary(_config.GracePeriod));
         }
 
         /// <summary>
@@ -931,8 +931,9 @@ namespace AutoTx
         /// name-timestamp exceeds the configured grace period and generate a summary
         /// containing the age and size of those directories.
         /// </summary>
-        public string GraceLocationSummary() {
-            var expired = ExpiredDirs(_config.GracePeriod);
+        /// <param name="threshold">The number of days used as expiration threshold.</param>
+        public string GraceLocationSummary(int threshold) {
+            var expired = ExpiredDirs(threshold);
             var report = "";
             foreach (var userdir in expired.Keys) {
                 report += "\n - user '" + userdir + "'\n";