mirror of
https://github.com//cppla/ServerStatus
synced 2026-03-26 00:09:49 +08:00
Update ssview.py
update ssview.py
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user