Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ReyunSecureSdk
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglei
ReyunSecureSdk
Commits
cc0ff7e9
Commit
cc0ff7e9
authored
Apr 12, 2021
by
Fear1ess
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4/8
parent
d30f8220
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
collect.c
wandun/src/main/cpp/collect.c
+1
-1
No files found.
wandun/src/main/cpp/collect.c
View file @
cc0ff7e9
...
...
@@ -433,7 +433,7 @@ void collect_mem_info(JNIEnv *env, cJSON *json) {
u_long
ram_total
=
si
.
totalram
*
si
.
mem_unit
;
u_long
ram_free
=
si
.
freeram
*
si
.
mem_unit
;
char
ram_buf
[
32
]
=
{
0
};
snprintf
(
ram_buf
,
31
,
"lu, %lu"
,
ram_total
,
ram_free
);
snprintf
(
ram_buf
,
31
,
"
%
lu, %lu"
,
ram_total
,
ram_free
);
cJSON_AddStringToObject
(
item
,
"ram"
,
ram_buf
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment