Author Topic: Update Notifier - Bad Info  (Read 527 times)

Offline wyohman

  • Hero Member
  • *****
  • Posts: 1346
  • Texas, USA
    • Shelby Registry
Update Notifier - Bad Info
« on: May 09, 2010, 01:22:52 PM »
I've noticed that when I mouse-over the update notifier icon, the number of updated packages is corrected but the number of new packages never is. Anyone else?

Cheers.
SZ77R5 | I7 3770 | 16GB | Samsung 840Pro | HD6670 | PCLOS 2012
Linux user since kernel 0.93

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Update Notifier - Bad Info
« Reply #1 on: May 09, 2010, 05:48:53 PM »
I haven't used it since installing 2010, but I'll do some testing.

How are you determining the number of new packages?  (update-notifier just compares a log of current packages at each update check to the log created at the previous update check..  much less sophisticated than what synaptic uses.)
« Last Edit: May 09, 2010, 05:59:14 PM by travisn000 »

Offline wyohman

  • Hero Member
  • *****
  • Posts: 1346
  • Texas, USA
    • Shelby Registry
Re: Update Notifier - Bad Info
« Reply #2 on: May 09, 2010, 06:05:18 PM »
How are you determining the number of new packages?  (update-notifier just compares a log of current packages at each update check to the log created at the previous update check..  much less sophisticated than what synaptic uses.)

If you mouse-over the update icon a tool-tip box pops up.

Cheers.
SZ77R5 | I7 3770 | 16GB | Samsung 840Pro | HD6670 | PCLOS 2012
Linux user since kernel 0.93

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Update Notifier - Bad Info
« Reply #3 on: May 09, 2010, 06:26:51 PM »
Sorry, I should clarify...  what are you comparing update-notifier's info to?

It will not match what synaptic reports because it is only able to compare package lists from one update check to the next; synaptic uses a different algorithm..  I'm not sure what it is, but it seems to be based on a longer time frame.  

Update-notifier's calculation is also user specific; update-notifier is run with current user permissions.  Its' logs are stored in the home directory of the user that is running it and are unique to that user.  This means that if one user runs update-notifier then doesn't log in for a period of weeks and a different user that has run it more recently, the "new" package list they see if they log-in and run update-notifier at a similar time will be different (although available updates should be the same).
« Last Edit: May 10, 2010, 09:52:04 PM by travisn000 »

Offline wyohman

  • Hero Member
  • *****
  • Posts: 1346
  • Texas, USA
    • Shelby Registry
Re: Update Notifier - Bad Info
« Reply #4 on: May 09, 2010, 08:32:13 PM »
Sorry, I should clarify...  what are you comparing update-notifier's info to?

It will not match what synaptic reports because it is only able to compare package lists from one update check to the next; synaptic uses a different algorithm..  I'm not sure what it is, but it seems to be based on a longer time frame.  

I'm comparing to a Synaptic run right after I noticed. I didn't realize there was a different algorithm to calculate the packages. It's still a bit disconcerting when I open Synaptic and the numbers are different.

Cheers.
SZ77R5 | I7 3770 | 16GB | Samsung 840Pro | HD6670 | PCLOS 2012
Linux user since kernel 0.93