From: Chanwoo Choi Date: Sun, 7 Aug 2022 20:02:54 +0000 (+0900) Subject: lib: resource-monitor: Fix pass_resource_monitor_get_resource_timestamp issue X-Git-Tag: submit/tizen/20220809.025855~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F279348%2F2;p=platform%2Fcore%2Fsystem%2Fpass.git lib: resource-monitor: Fix pass_resource_monitor_get_resource_timestamp issue Change-Id: I6730f5451b335dd8a4759d528989d846bcf686e0 Signed-off-by: Chanwoo Choi --- diff --git a/lib/resource-monitor/resource-monitor.c b/lib/resource-monitor/resource-monitor.c index c21bdb9..594a8ed 100644 --- a/lib/resource-monitor/resource-monitor.c +++ b/lib/resource-monitor/resource-monitor.c @@ -964,10 +964,10 @@ int pass_resource_monitor_get_resource_timestamp(int id, int res_id, int64_t *st } buffer[buffer_len] = '\0'; - if (sscanf(buffer, "%d$%"PRId64"$%"PRId64"$%d", &response_req, start, end, &ret) < 3) + if (sscanf(buffer, "%d$%"PRId64"$%"PRId64"$%d", &response_req, start, end, &ret) < 4) return -EINVAL; - if (response_req != REQUEST_GET_VALUE_INT64) { + if (response_req != REQUEST_GET_RESOURCE_TS) { _E("[libpass] wrong response"); return -EINVAL; }