diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2022-08-08 05:02:54 +0900 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-08-08 05:32:13 +0900 |
commit | cbaaadba5ff71b5f90e803be814951bc6acb7e46 (patch) | |
tree | 1e50913d624843088de85196c07d9ddefb0a2392 | |
parent | 0e052cb2cab204427e49c40f6bb6acf8a4352dab (diff) | |
download | pass-cbaaadba5ff71b5f90e803be814951bc6acb7e46.tar.gz pass-cbaaadba5ff71b5f90e803be814951bc6acb7e46.tar.bz2 pass-cbaaadba5ff71b5f90e803be814951bc6acb7e46.zip |
lib: resource-monitor: Fix pass_resource_monitor_get_resource_timestamp issue
Change-Id: I6730f5451b335dd8a4759d528989d846bcf686e0
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r-- | lib/resource-monitor/resource-monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |