commit | 0ba209d2a5ca615ba7cc35d0a5875718a995a2a0 | [log] [tgz] |
---|---|---|
author | Harout Hedeshian <harouth@codeaurora.org> | Fri Jul 31 13:08:06 2015 -0600 |
committer | Harout Hedeshian <harouth@codeaurora.org> | Fri Jul 31 13:09:14 2015 -0600 |
tree | 84f4bd3ec63001350839ba9cb7083b07e925155b | |
parent | 0abce0065f60c8a4d1f445196105a2483ecbc2ef [diff] |
datatop: fix file line count helper function always returns 0 lines When porting the snapshot, a change was made to dtop_get_file_line_amount() to initialize rc to -1. glibc defines EoF as -1 thus causing the for loop to never get executed. A line count of 0 was getting returnd thus causing ~1500 data points to not get polled. Instead, initialize rc to 0. Change-Id: I8e7a93f5efd535d662c13fa81cd5d0e421ad5a6b