From 953c3052016e43caa67a3cb56023699c6662422e Mon Sep 17 00:00:00 2001
From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Date: Thu, 25 Aug 2016 21:24:37 -0400
Subject: [PATCH] smartinfo: set to 500ms the default refresh time

Use a default value of 500ms for SmartTools refresh period.
This also fix the coverity issue CID # 1371961.

Change-Id: I45cb7162fa38ceeb52c73da46e815595ebbb8fa9
Tuleap: #909
Reviewed-by: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
---
 src/smartools.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/smartools.h b/src/smartools.h
index 2d3b6bf8c8..141d6e8911 100644
--- a/src/smartools.h
+++ b/src/smartools.h
@@ -43,7 +43,7 @@ class Smartools
         void process();
         std::map<std::string, std::string> information_;
         std::mutex mutexInfo_; // Protect information_ from multithreading
-        std::chrono::milliseconds refreshTimeMs_;
+        std::chrono::milliseconds refreshTimeMs_ {500};
         ThreadLoop loop_; // Has to be last member
 };
 } //ring namespace
-- 
GitLab