projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e052cb
)
lib: resource-monitor: Fix pass_resource_monitor_get_resource_timestamp issue
48/279348/2
author
Chanwoo Choi
<cw00.choi@samsung.com>
Sun, 7 Aug 2022 20:02:54 +0000
(
05:02
+0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Sun, 7 Aug 2022 20:32:13 +0000
(
05:32
+0900)
Change-Id: I6730f5451b335dd8a4759d528989d846bcf686e0
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
lib/resource-monitor/resource-monitor.c
patch
|
blob
|
history
diff --git
a/lib/resource-monitor/resource-monitor.c
b/lib/resource-monitor/resource-monitor.c
index
c21bdb9
..
594a8ed
100644
(file)
--- 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;
}