mirror of https://github.com/cppla/ServerStatus
parent
624cac0445
commit
a8db447a3f
|
@ -13,7 +13,8 @@ import requests
|
||||||
import time
|
import time
|
||||||
from prettytable import PrettyTable
|
from prettytable import PrettyTable
|
||||||
|
|
||||||
scroll = False
|
# todo: 程序在非gui环境下目前有闪屏的bug
|
||||||
|
scroll = True
|
||||||
clear = lambda: os.system('clear' if 'linux' in sys.platform else 'cls')
|
clear = lambda: os.system('clear' if 'linux' in sys.platform else 'cls')
|
||||||
|
|
||||||
def sscmd(address):
|
def sscmd(address):
|
||||||
|
@ -66,4 +67,4 @@ def sscmd(address):
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
default = 'https://tz.cloudcpp.com/json/stats.json'
|
default = 'https://tz.cloudcpp.com/json/stats.json'
|
||||||
ads = sys.argv[1] if len(sys.argv)==2 else default
|
ads = sys.argv[1] if len(sys.argv)==2 else default
|
||||||
sscmd(ads)
|
sscmd(ads)
|
||||||
|
|
Loading…
Reference in New Issue