aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2012-12-27 18:10:51 -0800
committerAdam Soltys <[email protected]>2012-12-27 18:10:51 -0800
commit135cec8103079336dea3e932f4f2e91a4c03d3f1 (patch)
tree3bea6365cbf81f81098f80e3b2146258a03a2e19 /routes
parent9afe96a80849f6be96fa660285eb2b4627cfe623 (diff)
downloadcoinos-server-135cec8103079336dea3e932f4f2e91a4c03d3f1.tar.gz
coinos-server-135cec8103079336dea3e932f4f2e91a4c03d3f1.zip
Cosmetic changes
Diffstat (limited to 'routes')
-rw-r--r--routes/calculator.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/calculator.coffee b/routes/calculator.coffee
index 0fe11a28..aa4fb063 100644
--- a/routes/calculator.coffee
+++ b/routes/calculator.coffee
@@ -16,7 +16,7 @@ exports.ticker = (req, res) ->
r.setEncoding('utf-8')
r.on('data', (chunk) ->
try
- exchange = 1000 / JSON.parse(chunk).out
+ exchange = req.query.amount / JSON.parse(chunk).out
exchange = (Math.ceil(exchange * 100) / 100).toString()
catch e
exchange = ""