From f715aa074462e0322ea4343f5a563c402b95aada Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 7 Nov 2013 15:52:12 +0100 Subject: bitcoinwisdom ticker: normalized difference --- gold/bitcoinwisdom/ticker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/bitcoinwisdom/ticker.js') diff --git a/gold/bitcoinwisdom/ticker.js b/gold/bitcoinwisdom/ticker.js index 25b29637..df0eeeb1 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 + 1000000 * diff) | 0; + freq = (2000 + 200 * diff * Math.sqrt(ticker.last / last_ticker.last)) | 0; var out = [ format_date(data.now) + '+' + pad(lag, -2, '0'), -- cgit v1.2.3