MEDIUM: counters: use sc0/sc1/sc2 instead of sc1/sc2/sc3
It was a bit inconsistent to have gpc start at 0 and sc start at 1,
so make sc start at zero like gpc. No previous release was issued
with sc3 anyway, so no existing setup should be affected.
diff --git a/include/proto/session.h b/include/proto/session.h
index 5188639..cc1242d 100644
--- a/include/proto/session.h
+++ b/include/proto/session.h
@@ -87,7 +87,7 @@
if (!s->stkctr[i].entry)
continue;
- if (!(s->flags & (SN_BE_TRACK_SC1 << i)))
+ if (!(s->flags & (SN_BE_TRACK_SC0 << i)))
continue;
ptr = stktable_data_ptr(s->stkctr[i].table, s->stkctr[i].entry, STKTABLE_DT_CONN_CUR);
@@ -173,7 +173,7 @@
if (!s->stkctr[i].entry)
continue;
- if (!(s->flags & (SN_BE_TRACK_SC1 << i)))
+ if (!(s->flags & (SN_BE_TRACK_SC0 << i)))
continue;
ptr = stktable_data_ptr(s->stkctr[i].table, s->stkctr[i].entry, STKTABLE_DT_HTTP_REQ_CNT);