summaryrefslogtreecommitdiffstats
path: root/gold/bitcoinwisdom
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-07 14:12:57 +0100
committertv <tv@nomic.retiolum>2013-11-07 14:12:57 +0100
commite70919d5dc67d4ab52f16875333f007ced357a72 (patch)
tree2ed3802cac0cb0cdc7c9398defed09946fe62006 /gold/bitcoinwisdom
parentf2cd30b291ddbf9f214fd98ee45b0d7661f5b2ac (diff)
bitcoinwisdom ticker: use toFixed for price
Diffstat (limited to 'gold/bitcoinwisdom')
-rw-r--r--gold/bitcoinwisdom/ticker.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/bitcoinwisdom/ticker.js b/gold/bitcoinwisdom/ticker.js
index 1aa212f2..1c4f73d9 100644
--- a/gold/bitcoinwisdom/ticker.js
+++ b/gold/bitcoinwisdom/ticker.js
@@ -49,7 +49,9 @@ function ticker_data_handler (data) {
var out = [
format_date(data.now) + '+' + pad(lag, -2, '0'),
symbol,
- '\x1b[' + diff_color(diff) + 'm' + pad(ticker.last, 2 + 8, '0') + '\x1b[m',
+ '\x1b[' + diff_color(diff) + 'm'
+ + ticker.last.toFixed(8)
+ + '\x1b[m',
lag,
freq,
];