diff options
author | lloyd <[email protected]> | 2009-01-28 01:17:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-01-28 01:17:05 +0000 |
commit | 22de3aa6cd5aeb21001f58f26b0e24143e41a276 (patch) | |
tree | b226791d995863df59e7003bc49621f66b3b4575 /src | |
parent | 155c64f3a99c20ea6481e60ac92c37586affcf5a (diff) |
In the BeOS entropy poll, quit the loop early if the polling goal was
achieved.
Diffstat (limited to 'src')
-rw-r--r-- | src/entropy/beos_stats/es_beos.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entropy/beos_stats/es_beos.cpp b/src/entropy/beos_stats/es_beos.cpp index d7c0c6cd6..02a751e6a 100644 --- a/src/entropy/beos_stats/es_beos.cpp +++ b/src/entropy/beos_stats/es_beos.cpp @@ -54,6 +54,9 @@ void BeOS_EntropySource::poll(Entropy_Accumulator& accum) area_info info_area; while(get_next_area_info(id, &cookie, &info_area) == B_OK) accum.add(info_area, 2); + + if(accum.polling_goal_achieved()) + break; } } |