summaryrefslogtreecommitdiff
path: root/epan/to_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/to_str.c')
-rw-r--r--epan/to_str.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index 3e00274fe0..0431f66233 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -506,6 +506,18 @@ display_signed_time(gchar *buf, int buflen, gint32 sec, gint32 frac,
}
switch (units) {
+ case SECS:
+ g_snprintf(buf, buflen, "%s%d", sign, sec);
+ break;
+
+ case DSECS:
+ g_snprintf(buf, buflen, "%s%d.%01d", sign, sec, frac);
+ break;
+
+ case CSECS:
+ g_snprintf(buf, buflen, "%s%d.%02d", sign, sec, frac);
+ break;
+
case MSECS:
g_snprintf(buf, buflen, "%s%d.%03d", sign, sec, frac);
break;