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

2016-01-14 Thread Răzvan Crainea
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

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

2016-01-14 Thread Rik Broers
Hmm missed that this one is closed. I do not agree that it is consistent. This is only true for the load statistics. Load statistics are suddenly formatted as follows Module : Proto : Ip : port-statname : : value pkmem:24-fragments:: 8 load:udp:185.47.2.231:5060-load:: 0 --- Reply to this ema

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

2015-11-17 Thread Răzvan Crainea
The format is consistent: `Module : StatName :: Value` --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/673#issuecomment-157328302___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/

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

2015-11-17 Thread Răzvan Crainea
Closed #673. --- Reply to this email directly or view it on GitHub: https://github.com/OpenSIPS/opensips/issues/673#event-466504979___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

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

2015-10-13 Thread Rik Broers
Hi, I parse the output from `opensipsctl fifo get_statistics` How i do this is to split all values on the : character. Every value looks as the following. pkmem:11-real_used_size:: 388768 Module : ValueName : EMPTY: Value And then there is this one! Which has one more : than all other val