Mercurial > pidgin
comparison src/server.c @ 660:b3b5d9d18eea
[gaim-migrate @ 670]
No more lag-o-meter.
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Thu, 10 Aug 2000 22:17:22 +0000 |
| parents | 874ed877c854 |
| children | c72f58814e9f |
comparison
equal
deleted
inserted
replaced
| 659:9e467c13ace7 | 660:b3b5d9d18eea |
|---|---|
| 85 update_all_buddies(); | 85 update_all_buddies(); |
| 86 | 86 |
| 87 time(&t); | 87 time(&t); |
| 88 | 88 |
| 89 gettimeofday(&lag_tv, NULL); | 89 gettimeofday(&lag_tv, NULL); |
| 90 if (general_options & OPT_GEN_SHOW_LAGMETER) | |
| 91 serv_send_im(current_user->username, LAGOMETER_STR, 1); | |
| 92 | 90 |
| 93 if (report_idle != IDLE_GAIM) | 91 if (report_idle != IDLE_GAIM) |
| 94 return TRUE; | 92 return TRUE; |
| 95 | 93 |
| 96 | 94 |
| 659 g_snprintf(message, strlen(message) + 1, "%s", buffy); | 657 g_snprintf(message, strlen(message) + 1, "%s", buffy); |
| 660 g_free(buffy); | 658 g_free(buffy); |
| 661 g_snprintf(name, strlen(name) + 1, "%s", angel); | 659 g_snprintf(name, strlen(name) + 1, "%s", angel); |
| 662 g_free(angel); | 660 g_free(angel); |
| 663 #endif | 661 #endif |
| 664 | |
| 665 nname = g_strdup(normalize(name)); | |
| 666 | |
| 667 if (!strcasecmp(normalize(current_user->username), nname)) { | |
| 668 if (!strcmp(message, LAGOMETER_STR)) { | |
| 669 struct timeval tv; | |
| 670 int ms; | |
| 671 | |
| 672 gettimeofday(&tv, NULL); | |
| 673 | |
| 674 ms = 1000000 * (tv.tv_sec - lag_tv.tv_sec); | |
| 675 | |
| 676 ms += tv.tv_usec - lag_tv.tv_usec; | |
| 677 | |
| 678 update_lagometer(ms); | |
| 679 g_free(nname); | |
| 680 return; | |
| 681 } | |
| 682 } | |
| 683 g_free(nname); | |
| 684 | 662 |
| 685 cnv = find_conversation(name); | 663 cnv = find_conversation(name); |
| 686 | 664 |
| 687 if (general_options & OPT_GEN_SEND_LINKS) { | 665 if (general_options & OPT_GEN_SEND_LINKS) { |
| 688 linkify_text(message); | 666 linkify_text(message); |
