Fix #34 Ring buffer bug
This commit is contained in:
parent
2d48fc0939
commit
7efd83ce00
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ static void pyfcgi_stats_add_sample(pyfcgi_stats_sample_t* samples, int sample)
|
|||
{
|
||||
samples->samples[samples->cur] = sample;
|
||||
samples->cur++;
|
||||
samples->cur %= PYFCGI_STATS_SZ;
|
||||
}
|
||||
|
||||
int pyfcgi_stats_init()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue