From e290f61b54d78677a56492e878c56326658d84f1 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 7 Nov 2013 16:03:06 +0100 Subject: bitcoinwisdom ticker: better normalization --- gold/bitcoinwisdom/ticker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/bitcoinwisdom') 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'), -- cgit v1.2.3