[Asterisk-code-review] taskprocessor.c: Add CLI commands to resset taskprocessor stats. (...asterisk[13])

Richard Mudgett asteriskteam at digium.com
Tue Sep 24 10:35:20 CDT 2019


Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/12938 )

Change subject: taskprocessor.c: Add CLI commands to resset taskprocessor stats.
......................................................................


Patch Set 1: Code-Review-1

(2 comments)

https://gerrit.asterisk.org/#/c/12938/1//COMMIT_MSG 
Commit Message:

https://gerrit.asterisk.org/#/c/12938/1//COMMIT_MSG@7 
PS1, Line 7: taskprocessor.c: Add CLI commands to resset taskprocessor stats.
s/resset/reset/


https://gerrit.asterisk.org/#/c/12938/1/main/taskprocessor.c 
File main/taskprocessor.c:

https://gerrit.asterisk.org/#/c/12938/1/main/taskprocessor.c@1291 
PS1, Line 1291: ao2_lock(tps);
              : 	tps->stats._tasks_processed_count = 0;
              : 	tps->stats.max_qsize = 0;
              : 	ao2_unlock(tps);
Should extract this to a tps_reset_stats() helper function so both CLI commands can use it.



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/12938
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: Iaf17fc4ae29396ab0c6ac92408fc7bdc2f12362d
Gerrit-Change-Number: 12938
Gerrit-PatchSet: 1
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Tue, 24 Sep 2019 15:35:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190924/441964ff/attachment-0001.html>


More information about the asterisk-code-review mailing list