[OpenSIPS-Devel] [opensips] opensipsctl statistics inconsistent formatting (#673)

Răzvan Crainea notifications at github.com
Thu Jan 14 15:52:56 CET 2016


Actually the only inconsistencies would appear if the name of the statistic contains `::`. Luckily we don't have this in opensips, so you could use the following logic, parsing the row from left to right:
1. search for `:` - this token represents the `Module`
2. search for `::` - this represents the `StatName`
3. everything else is the `Value`

Indeed, we used `:` to delimiter those tokens, but if we would have used something else, we would probably have the same problems with other statistics. So I think this is acceptable.

Best regards,
Răzvan

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/673#issuecomment-171663219
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160114/df7170f5/attachment.htm>


More information about the Devel mailing list