Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Commit 4551c65

Browse files
authored
level show
1 parent c7a06b2 commit 4551c65

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@ def init(self):
8181
if int(totaltask) == int(self.get_max_update):
8282
stat = "1"
8383
else:
84-
stat = self.u.startTask(self.updates[self.updatecount])
84+
stat, levelupdates = self.u.startTask(self.updates[self.updatecount])
85+
print(levelupdates)
8586
if "3" in stat or "0" in stat:
86-
logger.info("updating {} level +1".format(self.updates[self.updatecount]))
87+
logger.info("updating {} level {}".format(self.updates[self.updatecount], levelupdates))
8788
# print "Started Update
8889
logger.info("Waiting... in update")
8990
# u.useBooster()
@@ -100,7 +101,7 @@ def init(self):
100101
self.ddos.run_ddos()
101102
if self.BotNet_update:
102103
botnet = json.loads(self.b._botnetInfo())
103-
if int(botnet['count']) > 0 and int(botnet['energy']) > self.min_energy_botnet:
104+
if int(botnet['count']) > 0 and int(botnet['energy']) >= self.min_energy_botnet:
104105
for count, i in enumerate(botnet['data']):
105106
self.b.upgradebotnet(i['hostname'], int(i['running']), count)
106107
else:

0 commit comments

Comments
 (0)