diff options
author | Ryan Lortie <desrt@desrt.ca> | 2005-09-08 06:35:18 +0000 |
---|---|---|
committer | Ryan Lortie <ryanl@src.gnome.org> | 2005-09-08 06:35:18 +0000 |
commit | 17abc9b486fcba97dea7e6f48c084c7c0a3ba79c (patch) | |
tree | 66b4bbb08255ae187d62863417439459a6c6012c /gtik | |
parent | d33c0d74d800e320f85d21dce0b0ce60984ce044 (diff) |
report 3 digits instead of just 2 (as our upstream data source does).
2005-09-08 Ryan Lortie <desrt@desrt.ca>
* gtik.c: report 3 digits instead of just 2 (as our upstream data
source does). Patch from Jason Thomas <jason@debian.org>.
Closes bug #309343.
Diffstat (limited to 'gtik')
-rw-r--r-- | gtik/ChangeLog | 8 | ||||
-rw-r--r-- | gtik/gtik.c | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gtik/ChangeLog b/gtik/ChangeLog index f32f7d65b..4e11fe63d 100644 --- a/gtik/ChangeLog +++ b/gtik/ChangeLog @@ -1,8 +1,14 @@ +2005-09-08 Ryan Lortie <desrt@desrt.ca> + + * gtik.c: report 3 digits instead of just 2 (as our upstream data + source does). Patch from Jason Thomas <jason@debian.org>. + Closes bug #309343. + 2005-09-07 Ryan Lortie <desrt@desrt.ca> * gtik.c: clean up all sorts of -Wall warnings (missing headers, unused variables, etc). Replace populatelist (strtok() based - routine) with g_strsplit() equivalent. + routine) with g_strsplit() equivalent. Closes bug #310005. 2005-08-19 Ryan Lortie <desrt@desrt.ca> diff --git a/gtik/gtik.c b/gtik/gtik.c index e1f0c0e58..346baefe1 100644 --- a/gtik/gtik.c +++ b/gtik/gtik.c @@ -457,10 +457,10 @@ static gint updateOutput(gpointer data) setlocale(LC_NUMERIC, g_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; |