commit | 0f54b8c8e68cb89653b462afa2c70ba8329bf19b | [log] [tgz] |
---|---|---|
author | Kyle Swenson <kyle.swenson@est.tech> | Tue Aug 22 10:46:32 2023 -0600 |
committer | Kyle Swenson <kyle.swenson@est.tech> | Wed Aug 23 14:19:03 2023 -0600 |
tree | 37025ccdcb26712f9b7b00cef5b7cbbf258e7c3e | |
parent | 9b51092ab39b64e7c9d30776677d28e2ab4d74a8 [diff] |
CDU: Stop clearing stats prematurely The function 'seq_show' can be called multiple times if the printf buffer overflows. When this happened in the stats_clear case, we would lose the CDU data remaining in that bucket because we'd clear the entire bucket. This patch fixes this issue by checking that we've not overflowed the buffer before clearing the stats. Change-Id: Id110faf83b4e33c9865628e98d0cfee8df64bc6b