River[4]% gcc -Wall main6b.c circular.c River[5]% River[5]% ./a.out Expanding circular buffer: old max = 10, new max = 20 Expanding circular buffer: old max = 20, new max = 40 *** Circular Buffer Dump *** size = 27, max = 40 start = 0, end = 26 0: time = 361, rate = 1.291000 1: time = 411, rate = 1.291000 2: time = 412, rate = 1.281000 3: time = 413, rate = 1.292000 4: time = 414, rate = 1.284000 5: time = 414, rate = 1.290000 6: time = 511, rate = 1.241000 7: time = 512, rate = 1.251000 8: time = 513, rate = 1.232000 9: time = 514, rate = 1.202000 10: time = 517, rate = 1.119000 11: time = 551, rate = 1.080000 12: time = 552, rate = 1.081000 13: time = 553, rate = 1.079000 14: time = 554, rate = 1.088000 15: time = 561, rate = 1.072000 16: time = 562, rate = 1.113000 17: time = 563, rate = 1.091000 18: time = 564, rate = 1.092000 19: time = 571, rate = 1.089000 20: time = 572, rate = 1.073000 21: time = 573, rate = 1.061000 22: time = 574, rate = 1.111000 23: time = 581, rate = 1.119000 24: time = 582, rate = 1.123000 25: time = 583, rate = 1.151000 26: time = 584, rate = 1.153000 **************************** Average rate = 1.161111 Start: time = 361, rate = 1.291000 End: time = 584, rate = 1.153000 *** Circular Buffer Stats *** size = 27, max = 40 start = 0, end = 26 **************************** River[6]% River[6]% exit