tools/times: modified script to allow longer dataseries

This commit is contained in:
Daniel Marjamäki 2013-07-21 13:16:34 +02:00
parent 6e7c29987d
commit cb73a1d0c7
1 changed files with 2 additions and 2 deletions

View File

@ -15,13 +15,13 @@ int main()
if (!f)
return 1;
char lines[64][64] = {0};
char lines[0xffff][64] = {0};
int n = 0;
float mintime=0.0f, maxtime=0.0f;
char rev[10] = {0};
char line[128] = {0};
while (fgets(line,sizeof(line),f) && n < 64) {
while (fgets(line,sizeof(line),f) && n < (sizeof(lines)/sizeof(*lines))) {
replace(line,'\r','\0');
replace(line,'\n','\0');
if (strncmp(line,"HEAD is now at ", 15) == 0) {