fixed slicing error

This commit is contained in:
Gaurav-Gosain
2020-05-16 13:19:18 +04:00
parent 0716ca1afe
commit 99a4f67a8b

View File

@@ -102,7 +102,7 @@ client.on('message', async msg =>
else if (msg.body.startsWith('cost:')) else if (msg.body.startsWith('cost:'))
{ {
id = check_id(msg.id.remote); id = check_id(msg.id.remote);
data[id].data[data[id].cur_iter_data].cost = Number(msg.body.slice(12)); data[id].data[data[id].cur_iter_data].cost = Number(msg.body.slice(5));
} }
// Testing Phase // Testing Phase