mirror of
https://github.com//cppla/ServerStatus
synced 2025-09-06 09:52:20 +08:00
Update ssview.py
update ssview.py
This commit is contained in:
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…
x
Reference in New Issue
Block a user