mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
The identifier "ShowCouroutines" needs to be modified to "ShowCoroutines" in order to rectify the typographical error. v6.0.63 (#3703)
Correct the word errors by changing "ShowCoroutines" to "ShowCoroutines". --------- Co-authored-by: chundonglinlin <chundonglinlin@163.com> Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
2777351c4b
commit
34747fa1a3
3 changed files with 8 additions and 7 deletions
|
@ -5,9 +5,9 @@ Usage:
|
|||
nn_coroutines
|
||||
nn_coroutines 1000
|
||||
'''
|
||||
class NnCouroutines(gdb.Command):
|
||||
class NnCoroutines(gdb.Command):
|
||||
def __init__(self):
|
||||
super(NnCouroutines, self).__init__('nn_coroutines', gdb.COMMAND_DATA)
|
||||
super(NnCoroutines, self).__init__('nn_coroutines', gdb.COMMAND_DATA)
|
||||
|
||||
# https://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html#Python-API
|
||||
def invoke(self, arg, from_tty):
|
||||
|
@ -34,15 +34,15 @@ class NnCouroutines(gdb.Command):
|
|||
# Result.
|
||||
print('total coroutines: %s'%(nn_coroutines))
|
||||
|
||||
NnCouroutines()
|
||||
NnCoroutines()
|
||||
|
||||
'''
|
||||
Usage:
|
||||
show_coroutines
|
||||
'''
|
||||
class ShowCouroutines(gdb.Command):
|
||||
class ShowCoroutines(gdb.Command):
|
||||
def __init__(self):
|
||||
super(ShowCouroutines, self).__init__('show_coroutines', gdb.COMMAND_DATA)
|
||||
super(ShowCoroutines, self).__init__('show_coroutines', gdb.COMMAND_DATA)
|
||||
|
||||
# https://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html#Python-API
|
||||
def invoke(self, arg, from_tty):
|
||||
|
@ -67,4 +67,4 @@ class ShowCouroutines(gdb.Command):
|
|||
print('Error: prev=%s, this=%s, next=%s'%(prev, pthis, pnext))
|
||||
traceback.print_exc()
|
||||
|
||||
ShowCouroutines()
|
||||
ShowCoroutines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue