]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #1466 about Bogus pruning message
authorMartin Simmons <martin@lispworks.com>
Tue, 26 Jan 2010 08:46:19 +0000 (09:46 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:23 +0000 (16:49 +0200)
bacula/src/dird/ua_prune.c

index 9e532f4c6bf6b9a5a1e183c714a0b139ce92b59e..498b4da5c6341bb35d4cf5ad31fb0844464981d9 100644 (file)
@@ -389,7 +389,7 @@ int prune_jobs(UAContext *ua, CLIENT *client, POOL *pool, int JobType)
     * Select all files that are older than the JobRetention period
     *  and stuff them into the "DeletionCandidates" table.
     */
-   edit_utime(now-period, ed1, sizeof(ed1));
+   edit_utime(period, ed1, sizeof(ed1));
    Jmsg(ua->jcr, M_INFO, 0, _("Begin pruning Jobs older than %s.\n"), ed1);
    edit_int64(now - period, ed1);
    Mmsg(query, insert_delcand, (char)JobType, ed1,