pass: Change the unit for gov_timeout into milliseconds from seconds 34/280234/2
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 25 Aug 2022 08:04:01 +0000 (17:04 +0900)
committerDongwoo Lee <dwlee08@gmail.com>
Tue, 30 Aug 2022 07:10:11 +0000 (00:10 -0700)
commit0d1192a635a08a686f7616a96dfca3399fcdc524
treed86fc9d2d160b84b0e404f8c975699a1e324914c
parent8292dc63f70199454833f9a14f681b110c33dad1
pass: Change the unit for gov_timeout into milliseconds from seconds

Since comparing two floating point number variable causes unintended
result, it converts type of gov_timeout from double to int, and keeps
precison by using unint as milliseconds instead of seconds.
for instance, 0.2sec can represent as 200ms, so despite of converting
type, users can setup gov_timeout with same precision.

Change-Id: Ib8efbca7e5d044a6871e2ef6c23274518cf1875e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/pass/pass-cpuhp.c
src/pass/pass-parser.c
src/pass/pass.h