changeset 8579:3b16e400fa8c HEAD

idxview: Show seconds in timestamps (except for cache headers).
author Timo Sirainen <tss@iki.fi>
date Fri, 19 Dec 2008 13:03:51 +0200
parents 729576bb91d8
children 1efbbf9d0841
files src/util/idxview.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/util/idxview.c	Fri Dec 19 10:02:49 2008 +0200
+++ b/src/util/idxview.c	Fri Dec 19 13:03:51 2008 +0200
@@ -40,7 +40,7 @@
 	struct tm *tm;
 
 	tm = localtime(&timestamp);
-	strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M", tm);
+	strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm);
 	return buf;
 }
 
@@ -262,7 +262,7 @@
 			printf("%4u ", field->field_size);
 		else
 			printf("   - ");
-		printf("%-4s %s\n",
+		printf("%-4s %.16s\n",
 		       cache_decision2str(field->decision),
 		       unixdate2str(cache->fields[cache_idx].last_used));
 	}