summaryrefslogtreecommitdiffstats
path: root/gold/bitcoinwisdom
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-11-07 16:03:06 +0100
committerlassulus <lassulus@googlemail.com>2013-11-07 16:03:06 +0100
commite290f61b54d78677a56492e878c56326658d84f1 (patch)
tree6c90845345ddaa300db5f439650b0c919879391a /gold/bitcoinwisdom
parentf715aa074462e0322ea4343f5a563c402b95aada (diff)
bitcoinwisdom ticker: better normalization
Diffstat (limited to 'gold/bitcoinwisdom')
-rw-r--r--gold/bitcoinwisdom/ticker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/bitcoinwisdom/ticker.js b/gold/bitcoinwisdom/ticker.js
index df0eeeb1..002f8502 100644
--- a/gold/bitcoinwisdom/ticker.js
+++ b/gold/bitcoinwisdom/ticker.js
@@ -44,7 +44,7 @@ function ticker_data_handler (data) {
var lag = data.now - ticker.date;
- freq = (2000 + 200 * diff * Math.sqrt(ticker.last / last_ticker.last)) | 0;
+ freq = ( Math.pow(2000, ticker.last / last_ticker.last )) | 0;
var out = [
format_date(data.now) + '+' + pad(lag, -2, '0'),