Bug#267526: marked as done (stock ticker should use 3 decimal places)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 28 Nov 2004 03:18:23 -0800


Your message dated Sun, 28 Nov 2004 12:13:11 +0100
with message-id <87653q2pmg.fsf@Orfeo.duckcorp.org>
and subject line Fixed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Aug 2004 07:23:44 +0000
>From jason@debian.org Mon Aug 23 00:23:44 2004
Return-path: <jason@debian.org>
Received: from mx1.staff.pnc.com.au [203.91.225.6] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bz9B9-0006oS-00; Mon, 23 Aug 2004 00:23:44 -0700
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx1.staff.pnc.com.au (Postfix) with ESMTP id 00F9218059
	for <submit@bugs.debian.org>; Mon, 23 Aug 2004 17:23:41 +1000 (EST)
Received: from mx1.staff.pnc.com.au ([127.0.0.1])
	by localhost (mackerel [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 11623-04 for <submit@bugs.debian.org>;
	Mon, 23 Aug 2004 17:23:28 +1000 (EST)
Received: from pc-jason (pc-jason.staff.pnc.com.au [10.0.0.123])
	by mx1.staff.pnc.com.au (Postfix) with SMTP id 3ECF918058
	for <submit@bugs.debian.org>; Mon, 23 Aug 2004 17:23:28 +1000 (EST)
Received: by pc-jason (sSMTP sendmail emulation); Mon, 23 Aug 2004 17:23:24 +1000
Date: Mon, 23 Aug 2004 17:23:24 +1000
From: Jason Thomas <jason@debian.org>
To: submit@bugs.debian.org
Subject: stock ticker should use 3 decimal places
Message-ID: <20040823072324.GM6195@staff.pnc.com.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-No-CC: I'm probably on the list
User-Agent: Mutt/1.5.6+20040803i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at staff.pnc.com.au
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.1 required=4.0 tests=BAYES_44,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: gnome-applets
Version: 2.6.2.1-1
Severity: normal
Tags: patch

Hi, gtik stock ticker should use 3 decimal places as this is what yahoo
uses.

Stocks priced like 0.014 are currently being rounded off.

Here is a simple patch to do this.

diff -Naur gnome-applets-2.6.2.1.orig/gtik/gtik.c gnome-applets-2.6.2.1/gtik/gtik.c
--- gnome-applets-2.6.2.1.orig/gtik/gtik.c	2004-03-20 14:55:18.000000000 +1100
+++ gnome-applets-2.6.2.1/gtik/gtik.c	2004-08-23 17:17:24.000000000 +1000
@@ -460,10 +460,10 @@
                 setlocale(LC_NUMERIC, getenv("LANG"));
                 
                 if (change_val == 0.0)
-                        sprintf(result,"%s:%1.2f:%1.2f:%1.2f%%",
+                        sprintf(result,"%s:%1.3f:%1.3f:%1.2f%%",
                                 symbol,price_val,change_val,percent);
                 else
-                        sprintf(result,"%s:%1.2f:%1.2f:%+1.2f%%",
+                        sprintf(result,"%s:%1.3f:%1.3f:%+1.2f%%",
                                 symbol,price_val,change_val,percent);
         
                 return result;

-- 
Jason

"I hope you learn speaking English proper I hope speak I me you."
     -- Branden Robinson, 2001

---------------------------------------
Received: (at 267526-done) by bugs.debian.org; 28 Nov 2004 11:13:23 +0000
>From Duck@duckcorp.org Sun Nov 28 03:13:23 2004
Return-path: <Duck@duckcorp.org>
Received: from orfeo.duckcorp.org (mx.duckcorp.org) [62.4.21.229] (postfix)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CYMza-0003gK-00; Sun, 28 Nov 2004 03:13:22 -0800
Received: from localhost (localhost [127.0.0.1])
	by mx.duckcorp.org (Postfix) with ESMTP id D8C1E5009D3;
	Sun, 28 Nov 2004 12:13:20 +0100 (CET)
Received: from mx.duckcorp.org ([127.0.0.1])
	by localhost (Orfeo [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
	id 03189-10; Sun, 28 Nov 2004 12:13:17 +0100 (CET)
Received: from Orfeo.duckcorp.org (localhost [127.0.0.1])
	by mx.duckcorp.org (Postfix) with ESMTP id 6D96E5009D2;
	Sun, 28 Nov 2004 12:13:17 +0100 (CET)
From: =?utf-8?q?Marc_Dequ=C3=A8nes?= (Duck) <Duck@DuckCorp.org>
To: 265184-done@bugs.debian.org, 267526-done@bugs.debian.org,
	274576-done@bugs.debian.org, 278143-done@bugs.debian.org,
	272773-done@bugs.debian.org, 255680-done@bugs.debian.org,
	205303-done@bugs.debian.org, 241892-done@bugs.debian.org,
	264293-done@bugs.debian.org, 114524-done@bugs.debian.org,
	216324-done@bugs.debian.org
Subject: Fixed
Organization: DuckCorp
User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)
Date: Sun, 28 Nov 2004 12:13:11 +0100
Message-ID: <87653q2pmg.fsf@Orfeo.duckcorp.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
X-Virus-Scanned: by Amavis at DuckCorp
Delivered-To: 267526-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00,ONEWORD autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 8

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Coin,

Fixed in upload to unstable (2.8.1.1-3).

=2D-=20
Marc Dequ=C3=A8nes (Duck)

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBBqbLNsczZcpAmcIYRAqRGAJsGI8zCUU4zaWhNdvclMBPSo6RmDQCbBGV9
nmtuNYT1+YLvucGIw0Ofxr0=
=bmef
-----END PGP SIGNATURE-----
--=-=-=--