summaryrefslogtreecommitdiffstats
path: root/gold/bitcoinwisdom/ticker.js
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-11-07 15:52:12 +0100
committerlassulus <lassulus@googlemail.com>2013-11-07 15:52:12 +0100
commitf715aa074462e0322ea4343f5a563c402b95aada (patch)
treebc975dc82794b1b46bb82d0da4686097a387f4c3 /gold/bitcoinwisdom/ticker.js
parent289c983910e86d0b6fa877724859345093da6d20 (diff)
bitcoinwisdom ticker: normalized difference
Diffstat (limited to 'gold/bitcoinwisdom/ticker.js')
-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 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'),