diff options
author | neal <neal> | 2008-06-16 20:47:26 +0000 |
---|---|---|
committer | neal <neal> | 2008-06-16 20:47:26 +0000 |
commit | 55395f467aec620aecee96427362b8cefae1e189 (patch) | |
tree | 1bf8d487506e86719464bddd48f500c153612a7a /benchmarks/shared-memory-distribution.c | |
parent | bc31639281266a6e46deb0d19291e928c19e8542 (diff) |
2008-06-16 Neal H. Walfield <neal@gnu.org>
* shared-memory-distribution.c (main): Set NEXT_PERIOD based on
the first stat buffer, not the last one.
Diffstat (limited to 'benchmarks/shared-memory-distribution.c')
-rw-r--r-- | benchmarks/shared-memory-distribution.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmarks/shared-memory-distribution.c b/benchmarks/shared-memory-distribution.c index 22a046a..4043718 100644 --- a/benchmarks/shared-memory-distribution.c +++ b/benchmarks/shared-memory-distribution.c @@ -104,7 +104,9 @@ main (int argc, char *argv[]) rm_activity_stats (activity, next_period, &buffer, &count); assert (count > 0); if (i != 0) - assert (buffer.stats[0].period != stats[i - 1][0].period); + assertx (buffer.stats[0].period != stats[i - 1][0].period, + "%x != %x", + buffer.stats[0].period, stats[i - 1][0].period); stats[i][0] = buffer.stats[0]; @@ -116,7 +118,7 @@ main (int argc, char *argv[]) stats[i][1 + j] = buffer.stats[0]; } - next_period = buffer.stats[0].period + 1; + next_period = stats[i][0].period + 1; } terminate = true; |