summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Larson <mike@vyatta.com>2010-10-26 09:49:17 -0700
committerMichael Larson <mike@vyatta.com>2010-10-26 09:49:17 -0700
commit2ea6e2996608c158659c7f8179865172b1233428 (patch)
tree16c881772bddf4402de4aaca3d170aeb93b16081
parent4e89616719a7d4a84540ac7ed13933f2928e6257 (diff)
downloadvyatta-cfg-2ea6e2996608c158659c7f8179865172b1233428.tar.gz
vyatta-cfg-2ea6e2996608c158659c7f8179865172b1233428.zip
increase resolution of timing messages.
-rw-r--r--src/commit2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commit2.c b/src/commit2.c
index 0eb75f0..1679d76 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -512,7 +512,7 @@ process_func(GNode *node, gpointer data)
if (g_coverage) {
struct timeval t;
gettimeofday(&t,NULL);
- fprintf(out_stream,"[START] %lu, %s@%s",(unsigned long)t.tv_sec,ActionNames[result->_action],d->_path);
+ fprintf(out_stream,"[START] %lu:%lu, %s@%s",(unsigned long)t.tv_sec,(unsigned long)t.tv_usec,ActionNames[result->_action],d->_path);
}
@@ -584,7 +584,7 @@ process_func(GNode *node, gpointer data)
if (g_coverage) {
struct timeval t;
gettimeofday(&t,NULL);
- fprintf(out_stream,"[END] %lu\n",t.tv_sec);
+ fprintf(out_stream,"[END] %lu:%lu\n",t.tv_sec,t.tv_usec);
}
if (!status) { //EXECUTE_LIST RETURNS FALSE ON FAILURE....
@@ -1336,7 +1336,7 @@ validate_func(GNode *node, gpointer data)
if (g_coverage) {
struct timeval t;
gettimeofday(&t,NULL);
- fprintf(out_stream,"[START] %lu, %s@%s",(unsigned long)t.tv_sec,ActionNames[result->_action],d->_path);
+ fprintf(out_stream,"[START] %lu:%lu, %s@%s",(unsigned long)t.tv_sec,(unsigned long)t.tv_usec,ActionNames[result->_action],d->_path);
}
char *outbuf = malloc(8192);
@@ -1369,7 +1369,7 @@ validate_func(GNode *node, gpointer data)
if (g_coverage) {
struct timeval t;
gettimeofday(&t,NULL);
- fprintf(out_stream,"[END] %lu\n",t.tv_sec);
+ fprintf(out_stream,"[END] %lu:%lu\n",t.tv_sec,t.tv_usec);
}
if (!status) { //EXECUTE_LIST RETURNS FALSE ON FAILURE....