Minor fix in adjust_validity()
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 10 Mar 2008 13:00:55 +0000 (13:00 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 10 Mar 2008 13:00:55 +0000 (13:00 +0000)
org.glite.lb.server/src/notification.c

index 02bc136..cc22d7d 100644 (file)
@@ -716,8 +716,9 @@ static void adjust_validity(edg_wll_Context ctx,time_t *valid)
 {
        time_t  now;
 
+       time(&now);
+
        if (*valid <= 0) {
-               time(&now); 
                *valid = now + ctx->notifDuration;
        }