Skip to content

Commit

Permalink
Fixed internet and RAM meters + bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxiereal authored May 9, 2023
1 parent b85898d commit 2dab9b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions XTBox.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def p3():

# Updater
pre = ""
version = "2.5"
version = "2.6"
if pre == "": pre = " "
# Sets `pre` to this long space to prevent some sort of bugs
# Can't be a defined function
Expand Down Expand Up @@ -619,16 +619,16 @@ def p3():
# ISSUES FIXED, STOP ASKING
# Un-Fucked, don't touch
SetVars.rama()
try: ramavailz = '00GB / 00GB'
except: ramavailz = "error"
try: ramavailz = SetVars.rama()
except: ramavailz = '00GB / 00GB'

try: cpu00000000000 = SetVars.cpup()
except: cpu00000000000 = '000 / 100%'

try: diskusage0000 = SetVars.dusage()
except: diskusage0000 = '00GB / 00GB '

try: ping0 = SetVars.ping0() + " "
try: ping0 = str(f"{round(ping('google.com', unit='ms'))}ms").ljust(7)
except: ping0 = "000ms "

try: c = SetVars.c()
Expand Down Expand Up @@ -691,4 +691,4 @@ def p3():
except KeyboardInterrupt:
print("\nbai bai")
sleep(1)
cls()
cls()

0 comments on commit 2dab9b2

Please sign in to comment.