]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
files are now saved - if possible - while fcron runs a job
authorThibault Godouet <yo8192@users.noreply.github.com>
Sun, 4 Jun 2000 12:07:50 +0000 (12:07 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Sun, 4 Jun 2000 12:07:50 +0000 (12:07 +0000)
fcron.c

diff --git a/fcron.c b/fcron.c
index f2b08e9044cb8be68a9033e6c228204adf8dd1dd..040e82281894a3571d8043ab714c2c847fe5bbde 100644 (file)
--- a/fcron.c
+++ b/fcron.c
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: fcron.c,v 1.9 2000-05-31 19:11:40 thib Exp $ */
+ /* $Id: fcron.c,v 1.10 2000-06-04 12:07:50 thib Exp $ */
 
 #include "fcron.h"
 
-char rcs_info[] = "$Id: fcron.c,v 1.9 2000-05-31 19:11:40 thib Exp $";
+char rcs_info[] = "$Id: fcron.c,v 1.10 2000-06-04 12:07:50 thib Exp $";
 
 void main_loop(void);
 void info(void);
@@ -514,8 +514,8 @@ void main_loop()
 
            test_jobs(t2);
 
-           if ( (save = ( (save-dt) >= 0 ) ? save-dt : 0) == 0) {
-               save = SAVE - (t2 % 60);
+           if ( (save = ( (save-dt) >= 0 ) ? save-dt : 0) <= 60) {
+               save = SAVE;
                /* save all files */
                save_file(NULL, NULL);
            }