File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
benchmarks/lockhammer/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ int main(int argc, char** argv)
177177 fprintf (stderr , "ERROR: cannot allocate enough memory for pinorder structure.\n" );
178178 return 1 ;
179179 }
180- /* colon is better than comma because lockhammer output uses csv format */
181- csv = strtok (optarg , ":" );
180+ /* support both comma and colon as delimiter */
181+ csv = strtok (optarg , ", :" );
182182 for (int i = 0 ; i < num_cores && csv != NULL ; ++ i )
183183 {
184184 optval = strtol (csv , (char * * ) NULL , 10 );
@@ -187,7 +187,7 @@ int main(int argc, char** argv)
187187 } else {
188188 fprintf (stderr , "WARNING: core number %ld is out of range.\n" , optval );
189189 }
190- csv = strtok (NULL , ":" );
190+ csv = strtok (NULL , ", :" );
191191 }
192192 break ;
193193 case 's' :
You can’t perform that action at this time.
0 commit comments