Doc# E166703 E-27
E: Retrieving Logs
Electro Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
Electro Industries/GaugeTech
The Leader In Power Monitoring and Smart Grid Solutions
• If the number of remaining records (#records - current index) is less than the
Records per Window, then the next window is the last, and contains less than a full
window of records. Make records per window equal to remaining records
(#records-current index). In this example, this occurs when current index is 91
(the 8'th window). There are now 9 records available (100-91), so make Records
per Window equal 9.
11. Repeat steps 5 through 10.
NOTES:
• Go back to step 5, where a couple of values have changed.
Pass CurIndex FirstRecIndex RecPerWindow
0 0 0 13
1 13 13 13
2 26 26 13
3 39 39 13
4 52 52 13
5 65 65 13
6 78 78 13
7 91 91 9
8 100 ------ -------
• At pass 8, since Current Index is equal to the number of records (100), log retrieval
should stop; go to step 12 (see step 9 Notes).
12. No more records available, clean up.