mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
add TString struct size
This commit is contained in:
@@ -416,7 +416,7 @@ getslot(struct shrmap_slot *s, struct slotinfo *info) {
|
||||
TString *ts = s->str;
|
||||
while (ts) {
|
||||
++info->len;
|
||||
info->size += ts->shrlen;
|
||||
info->size += sizelstring(ts->shrlen);
|
||||
ts = ts->u.hnext;
|
||||
}
|
||||
rwlock_runlock(&s->lock);
|
||||
|
||||
Reference in New Issue
Block a user