summaryrefslogtreecommitdiff
path: root/epan/column.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2006-12-05 03:19:51 +0000
committerStephen Fisher <steve@stephen-fisher.com>2006-12-05 03:19:51 +0000
commit75acf34518617ddb64be049e13393f477a15d0dd (patch)
tree66912a037dc8a2b4910cfa0fdc8b9d85f01e1c2b /epan/column.c
parentd11958ec6fdafc3305b9e3239783db00078e03ba (diff)
downloadwireshark-75acf34518617ddb64be049e13393f477a15d0dd.tar.gz
From Douglas Pratley with trivial changes and documentation changes
by myself: Corrected patch; epan/column.c and epan/column_utils.c were not included. This one has now been properly tested against a clean checkout of today's code. - New menu option available under view\time display format - New sub-option (e) to -t switch for both wireshark and tshark - Extended recent settings code to handle new value - Did NOT add new explicit epoch time column svn path=/trunk/; revision=20040
Diffstat (limited to 'epan/column.c')
-rw-r--r--epan/column.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/epan/column.c b/epan/column.c
index dc56cd0a2e..789f3ecc54 100644
--- a/epan/column.c
+++ b/epan/column.c
@@ -373,6 +373,37 @@ get_timestamp_column_longest_string(gint type, gint precision)
g_assert_not_reached();
}
break;
+ case(TS_EPOCH):
+ /* This is enough to represent 2^63 (signed 64-bit integer) + fractions */
+ switch(precision) {
+ case(TS_PREC_AUTO_SEC):
+ case(TS_PREC_FIXED_SEC):
+ return "0000000000000000000";
+ break;
+ case(TS_PREC_AUTO_DSEC):
+ case(TS_PREC_FIXED_DSEC):
+ return "0000000000000000000.0";
+ break;
+ case(TS_PREC_AUTO_CSEC):
+ case(TS_PREC_FIXED_CSEC):
+ return "0000000000000000000.00";
+ break;
+ case(TS_PREC_AUTO_MSEC):
+ case(TS_PREC_FIXED_MSEC):
+ return "0000000000000000000.000";
+ break;
+ case(TS_PREC_AUTO_USEC):
+ case(TS_PREC_FIXED_USEC):
+ return "0000000000000000000.000000";
+ break;
+ case(TS_PREC_AUTO_NSEC):
+ case(TS_PREC_FIXED_NSEC):
+ return "0000000000000000000.000000000";
+ break;
+ default:
+ g_assert_not_reached();
+ }
+ break;
case(TS_NOT_SET):
return "0000.000000";
break;