… | |
… | |
1355 | else if (!strcmp (arg, "-color")) |
1355 | else if (!strcmp (arg, "-color")) |
1356 | def_color = argv[++i]; |
1356 | def_color = argv[++i]; |
1357 | else if (!strcmp (arg, "-noinitial")) |
1357 | else if (!strcmp (arg, "-noinitial")) |
1358 | opt_noinitial = 1; |
1358 | opt_noinitial = 1; |
1359 | else if (!strcmp (arg, "-id")) |
1359 | else if (!strcmp (arg, "-id")) |
1360 | root = atoi (argv[++i]); |
1360 | { |
|
|
1361 | unsigned long id; |
|
|
1362 | |
|
|
1363 | if (sscanf (argv[++i], "%li", &id) == 1 && id) |
|
|
1364 | root = id; |
|
|
1365 | } |
1361 | else if (!strcmp (arg, "-interval") || !strcmp (arg, "-i")) |
1366 | else if (!strcmp (arg, "-interval") || !strcmp (arg, "-i")) |
1362 | { |
1367 | { |
1363 | double iv = atof (argv[++i]); |
1368 | double iv = atof (argv[++i]); |
1364 | |
1369 | |
1365 | interval.tv_sec = (int) iv; |
1370 | interval.tv_sec = (int) iv; |