Commit 5db16c46 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent bb249d25
......@@ -151,10 +151,10 @@ async function run() {
// console.log('Balance ->',balance)
// console.log('Worth ->',arrNew[0])
let worth = (balance - lastBalance) / (arrDate[0].sum)
let worth = (balance - lastBalance) / (arrDate[0].sum-100)
if (worth < base) {
base = worth
console.log(arrDate[0].sum, balance - lastBalance, worth)
console.log(arrDate[0].sum-100, balance - lastBalance, worth)
let arr5 = []
for (let f = 0; f < size; f++) {
arr5.push(com[f])
......@@ -163,7 +163,7 @@ async function run() {
// let z={maxReserve:arrNew[0].sum,balance:balance,bad:base}
//
// await createfileADV(JSON.stringify(z))
await lastCheck(arrDate[0].sum, balance - lastBalance, base, arr5)
await lastCheck(arrDate[0].sum-100, balance - lastBalance, base, arr5)
}
// let start=false
// let arr2=[]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment