[Panel-devel] data engine config

Esben Mose Hansen kde at mosehansen.dk
Tue Jan 1 10:39:50 CET 2008


On Tuesday 01 January 2008 09:31:42 Aaron J. Seigo wrote:

> i see you already committed this. unfortunately, you removed a block of
> code that shouldn't have been. in particular:
>
> -    if (msec < d->updateTs) {
> -        // we wrapped over midnight here, so return the current
> -        // msec's plus the number of msec left in the previous day.
> -        // 86400000 is the # of msec in a day
> -        //
> -        // yes, we assume we don't wrap more than one day here.
> -        return msec + (86400000 - d->updateTs);
> -    }
>
> that check still needs to happen, for obvious reasons. pelase add it back.

Hmmm.... what would happen in the above code if someone hibernated their 
laptop over the weekend? Not that I'm totally sure, but I don't think we can 
assume that a tic will not cross multiple days.

-- 
regards, Esben

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Panel-devel mailing list