diff options
| author | Adam Soltys <[email protected]> | 2012-12-27 18:10:51 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-12-27 18:10:51 -0800 |
| commit | 135cec8103079336dea3e932f4f2e91a4c03d3f1 (patch) | |
| tree | 3bea6365cbf81f81098f80e3b2146258a03a2e19 /routes | |
| parent | 9afe96a80849f6be96fa660285eb2b4627cfe623 (diff) | |
| download | coinos-server-135cec8103079336dea3e932f4f2e91a4c03d3f1.tar.gz coinos-server-135cec8103079336dea3e932f4f2e91a4c03d3f1.zip | |
Cosmetic changes
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/calculator.coffee | 2 |
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 = "" |
