[Panel-devel] data engine config

Chani chanika at gmail.com
Tue Jan 1 12:45:59 CET 2008


> 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.

does not. QTime does this for us. :)

int QTime::elapsed() const
{
    int n = msecsTo(currentTime());
    if (n < 0)                                // passed midnight
        n += 86400 * 1000;
    return n;
}

-- 
This message brought to you by evyl bananas, and the number 3.
www.chani3.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080101/f706dec9/attachment.pgp 


More information about the Panel-devel mailing list