changeset 6:e7b30e18fd6c

[gaim-migrate @ 15] Fixed a segfault in the percentage bar code with machines such as alphas and power pc's. Thanks to Todd Cohen for the diff on this. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 23 Mar 2000 03:44:52 +0000
parents 494816c30ca7
children 4ef7951a2503
files src/buddy.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Thu Mar 23 03:23:41 2000 +0000
+++ b/src/buddy.c	Thu Mar 23 03:44:52 2000 +0000
@@ -190,7 +190,9 @@
 
                 
         pct = last_lag_us/100000;
-        pct = 25 * log(pct);
+
+	if (pct > 0)
+		pct = 25 * log(pct);
 
         if (pct < 0)
                 pct = 0;