After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561854 - Index data does not display correctly
Index data does not display correctly
Status: RESOLVED OBSOLETE
Product: gnome-applets
Classification: Other
Component: invest-applet
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-21 19:53 UTC by Jeff
Modified: 2008-11-24 23:57 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Corrects calculations for stock indices (979 bytes, patch)
2008-11-21 19:53 UTC, Jeff
none Details | Review

Description Jeff 2008-11-21 19:53:05 UTC
Indices are displayed as value (change %) where change is the actual change and
not really a percentage.

Version-Release number of selected component (if applicable):
Tested on 2.22.3

How reproducible:
Add a index such as the S&P 500 (^GSPC) to the stock list and compare to the
yahoo Finance website entry for the index.

Actual results:
If the index is at 750 and previously closed at 745 will display
+750 (+5.00%)

Expected results:
Should display
750 (+.67%)

Additional info:
I have a patch that does the correct calculation for indices.
Comment 1 Jeff 2008-11-21 19:53:48 UTC
Created attachment 123191 [details] [review]
Corrects calculations for stock indices
Comment 2 Ray Strode [halfline] 2008-11-21 20:18:23 UTC
Downstream report:

https://bugzilla.redhat.com/show_bug.cgi?id=472564
Comment 3 Callum McKenzie 2008-11-24 23:57:07 UTC
Thanks for the patch, but this was fixed in 2.24.