|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From fdb14b7ef40d1f19f3bd7c8fa2a3821c2be87a5e Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Wed, 1 Oct 2014 07:34:05 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] core: limit timestamp to sane precision
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Anything below .1 s is meaningless anyway.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/core/main.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/core/main.c b/src/core/main.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 64c2b3f3a1..1a62e04c80 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/core/main.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/core/main.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -1725,7 +1725,7 @@ int main(int argc, char *argv[]) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
after_startup = now(CLOCK_MONOTONIC);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
log_full(arg_action == ACTION_TEST ? LOG_INFO : LOG_DEBUG,
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
"Loaded units and determined initial transaction in %s.",
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- format_timespan(timespan, sizeof(timespan), after_startup - before_startup, 0));
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ format_timespan(timespan, sizeof(timespan), after_startup - before_startup, 100 * USEC_PER_MSEC));
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
if (arg_action == ACTION_TEST) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
printf("-> By jobs:\n");
|