update the statistics regading the final codes of the transactions * A single transaction will generate a single update on one of * these statistics */
| 68 | * these statistics |
| 69 | */ |
| 70 | inline static void stats_trans_code( int code) |
| 71 | { |
| 72 | if (tm_enable_stats) { |
| 73 | if (code>=700) { |
| 74 | return; |
| 75 | } else if (code>=600) { |
| 76 | update_stat( tm_trans_6xx, 1); |
| 77 | } else if (code>=500) { |
| 78 | update_stat( tm_trans_5xx, 1); |
| 79 | } else if (code>=400) { |
| 80 | update_stat( tm_trans_4xx, 1); |
| 81 | } else if (code>=300) { |
| 82 | update_stat( tm_trans_3xx, 1); |
| 83 | } else if (code>=200) { |
| 84 | update_stat( tm_trans_2xx, 1); |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | /* update the statistics regading the final replies sent to UAC side |
| 90 | * A single transaction may generate multiple updates on different |