[Adium-devl] 'Last 7 days' in Sparkle
Zachary West
zacwest at gmail.com
Sun Aug 26 21:07:06 UTC 2007
On 8/26/07, Michael <princip2000 at mail.ru> wrote:
>
> The Sparkle stats at <http://adiumx.com/sparkle> are listed for a
> specific week number. This has the odd side effect that every Sunday
> night/Monday morning all statistics are 'reset' and counting starts from
> 0 again. Basically, the statistics tend to get more accurate as the week
> progresses only to be dumped again after seven days.
I've played around with having the stats automatically size-up the week
based on current-week numbers. In the end, I figured it'd be too confusing
to do something like that, especially since usage per day varies so much.
When you'd like to use the Sparkle stats as a means of checking things
> like CPU or OS usage, it is usually better to take the previous week
> than the present week.
>
> Wouldn't it be nice to have an extra option to show 'last 7 days'? That
> would always give the most accurate stats.
In order to make the stats as fast as possible (for both pushing and pulling
information), I had to eliminate a lot of the flexibility of it. In a normal
Sparkle+ distribution, each report is its own set of information -- all
linked together, all process-able -- and more importantly, all dated.
The way the current implementation works, is for the keyName and keyValue
(that is, "osVersion" and say, "10.3.9"), we simply increment the count of
the times we've seen that particular event occur by 1 each time it occurs.
This is by week, so getting the last 7 days on its own is largely complex.
I think just viewing last week is a pretty good indication of the numbers
(outside of the current 1.1 version).
Zac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070826/d89e6cc6/attachment-0001.html>
More information about the devel
mailing list