tools/times: modified script to allow longer dataseries
This commit is contained in:
parent
6e7c29987d
commit
cb73a1d0c7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue