changeset 2698:e80f4b4f840f

[gaim-migrate @ 2711] sessionlen is much better than onlinesince committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 09 Nov 2001 01:11:36 +0000
parents 7759f914a009
children 092c5a1ddf72
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Thu Nov 08 09:44:36 2001 +0000
+++ b/src/protocols/oscar/oscar.c	Fri Nov 09 01:11:36 2001 +0000
@@ -1147,7 +1147,7 @@
 		g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", info->sn);
 	g_free(tmp);
 
-	serv_got_update(gc, info->sn, 1, info->warnlevel/10, info->onlinesince,
+	serv_got_update(gc, info->sn, 1, info->warnlevel/10, time(NULL) - info->sessionlen,
 			time_idle, type, info->capabilities);
 
 	return 1;
@@ -1895,7 +1895,7 @@
 	va_end(ap);
 
 	gc->evil = info->warnlevel/10;
-	gc->correction_time = (info->onlinesince - gc->login_time);
+	/* gc->correction_time = (info->onlinesince - gc->login_time); */
 
 	return 1;
 }