1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Update perf tool

This commit is contained in:
winlin 2020-04-14 22:16:14 +08:00
parent 6cf9933bf3
commit 649f2042da

View file

@ -25,7 +25,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import urllib, sys, json import urllib, sys, json
url = "http://localhost:1985/api/v1/perf" url = "http://localhost:1985/api/v1/perf"
if len(sys.argv) > 1: if len(sys.argv) < 2:
print "Usage: %s <url>"%(sys.argv[0])
print "For example:"
print " %s http://localhost:1985/api/v1/perf"%(sys.argv[0])
sys.exit(-1)
url = sys.argv[1] url = sys.argv[1]
print "Open %s"%(url) print "Open %s"%(url)