diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-08-25 21:29:54 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-08-25 21:29:54 +0000 |
commit | 723c80ea90a3c56c069a0a99e22edd43b00cf357 (patch) | |
tree | a0bd0c2272cf5b8f96e1364c0e2f7be960df4f69 /tethereal.c | |
parent | bd42437262d885f24cbf0fc96e4b2235aac695a3 (diff) |
timestamp display precision:
- automatic adjustment depending on file format
- manual adjustment through menu items
save the setting in the recent file
svn path=/trunk/; revision=15534
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tethereal.c b/tethereal.c index 65f933cd81..2f3d7db5dc 100644 --- a/tethereal.c +++ b/tethereal.c @@ -656,7 +656,8 @@ main(int argc, char *argv[]) capture_opts_init(&capture_opts, NULL /* cfile */); #endif - set_timestamp_setting(TS_RELATIVE); + timestamp_set_type(TS_RELATIVE); + timestamp_set_precision(TS_PREC_AUTO); /* Register all dissectors; we must do this before checking for the "-G" flag, as the "-G" flag dumps information registered by the @@ -961,13 +962,13 @@ main(int argc, char *argv[]) break; case 't': /* Time stamp type */ if (strcmp(optarg, "r") == 0) - set_timestamp_setting(TS_RELATIVE); + timestamp_set_type(TS_RELATIVE); else if (strcmp(optarg, "a") == 0) - set_timestamp_setting(TS_ABSOLUTE); + timestamp_set_type(TS_ABSOLUTE); else if (strcmp(optarg, "ad") == 0) - set_timestamp_setting(TS_ABSOLUTE_WITH_DATE); + timestamp_set_type(TS_ABSOLUTE_WITH_DATE); else if (strcmp(optarg, "d") == 0) - set_timestamp_setting(TS_DELTA); + timestamp_set_type(TS_DELTA); else { fprintf(stderr, "tethereal: Invalid time stamp type \"%s\"\n", optarg); |