Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ai
Commits
0ba6aec6
Commit
0ba6aec6
authored
Sep 21, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pull
parent
b1c4343d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
tor.js
tor.js
+3
-2
torobche0.js
torobche0.js
+2
-2
No files found.
tor.js
View file @
0ba6aec6
...
...
@@ -7,7 +7,7 @@ let res
let
arr
=
[]
let
arrRange
=
[]
let
lastBalance
=
1000
let
size
=
25
let
size
=
100
let
balance
=
lastBalance
init
()
...
...
@@ -244,7 +244,8 @@ async function run() {
if
(
arrDate
[
0
].
sum
===
0
)
return
console
.
log
(
'
Balance ->
'
,
balance
-
lastBalance
)
let
worth
=
(
balance
-
lastBalance
)
/
(
arrNew
[
0
].
sum
-
1000
)
let
worth
=
(
balance
-
lastBalance
)
/
(
arrNew
[
0
].
sum
)
console
.
log
((
balance
-
lastBalance
),(
arrNew
[
0
].
sum
))
console
.
log
(
'
Worth ->
'
,
worth
)
...
...
torobche0.js
View file @
0ba6aec6
...
...
@@ -153,10 +153,10 @@ async function run() {
// console.log('Balance ->',balance)
// console.log('Worth ->',arrNew[0])
let
worth
=
(
balance
-
lastBalance
)
/
(
arrNew
[
0
].
sum
-
1000
)
let
worth
=
(
balance
-
lastBalance
)
/
(
arrNew
[
0
].
sum
)
if
(
worth
<
base
)
{
base
=
worth
console
.
log
(
arrNew
[
0
].
sum
-
1000
,
balance
-
lastBalance
,
worth
)
console
.
log
(
arrNew
[
0
].
sum
,
balance
-
lastBalance
,
worth
)
let
arr5
=
[]
for
(
let
f
=
0
;
f
<
size
;
f
++
)
{
arr5
.
push
(
com
[
f
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment