~ken-vandine/pidgin-libnotify/indicate.patch

« back to all changes in this revision

Viewing changes to src/pidgin-libnotify.c

  • Committer: Ted Gould
  • Date: 2009-03-24 15:39:43 UTC
  • Revision ID: ted@canonical.com-20090324153943-pxxt9o1l8jpb9u55
abs was a really bad idea

Show diffs side-by-side

added added

removed removed

Lines of Context:
347
347
        PurplePresence * account_pres = purple_account_get_presence(buddy->account);
348
348
        PurplePresence * buddy_pres = purple_buddy_get_presence(buddy);
349
349
 
350
 
        if (abs(difftime(purple_presence_get_login_time(account_pres), purple_presence_get_login_time(buddy_pres))) < 30.0) {
 
350
        if (difftime(purple_presence_get_login_time(buddy_pres), purple_presence_get_login_time(account_pres)) < 30.0) {
351
351
                /* If the account came online at basically the same time as
352
352
                   the buddy it's really unlikely that's when the buddy came
353
353
                   online.  More likely that the initialization of the buddy
384
384
        PurplePresence * account_pres = purple_account_get_presence(buddy->account);
385
385
        PurplePresence * buddy_pres = purple_buddy_get_presence(buddy);
386
386
 
387
 
        if (abs(difftime(purple_presence_get_login_time(account_pres), purple_presence_get_login_time(buddy_pres))) < 30.0) {
 
387
        if (difftime(purple_presence_get_login_time(buddy_pres), purple_presence_get_login_time(account_pres)) < 30.0) {
388
388
                /* If the account came online at basically the same time as
389
389
                   the buddy it's really unlikely that's when the buddy came
390
390
                   online.  More likely that the initialization of the buddy