Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
wanli
evm-store
Commits
5045466c
Commit
5045466c
authored
Jul 21, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(资源监视器): 修复一些变量为空的判断
parent
2c1deb48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
backend/view/monitor.py
backend/view/monitor.py
+7
-1
frontend/src/views/system/components/SystemChart.vue
frontend/src/views/system/components/SystemChart.vue
+0
-3
No files found.
backend/view/monitor.py
View file @
5045466c
'''
Author: your name
Date: 2021-06-29 19:33:41
LastEditTime: 2021-07-
05 18:56:38
LastEditTime: 2021-07-
21 11:12:31
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath:
\
evm-store
\b
ackend
\v
iew
\
monitor.py
...
...
@@ -240,7 +240,13 @@ class MainHandler(BaseHandler):
self
.
write
(
json
.
dumps
({
"msg"
:
"Hello, world"
}))
def
post
(
self
):
if
not
self
.
request
.
body
:
return
None
data
=
tornado
.
escape
.
json_decode
(
self
.
request
.
body
)
logger
.
info
(
data
)
self
.
write
(
json
.
dumps
({
'code'
:
100
,
'data'
:
data
,
'msg'
:
'success'
}))
message
=
{
'imei'
:
'12345678900005'
,
'type'
:
'report'
,
'system'
:
{
'free_size'
:
0
},
'lvgl'
:
{
'total_size'
:
5242880
,
'free_cnt'
:
31
,
'free_size'
:
1279664
,
'free_biggest_size'
:
1205448
,
'used_cnt'
:
832
,
'used_pct'
:
76
,
'frag_pct'
:
6
},
'evm'
:
{
'total_size'
:
2097152
,
'free_size'
:
0
,
'gc_usage'
:
50
},
'image'
:
[{
'uri'
:
'evue_launcher'
,
'length'
:
1043
,
'png_total_count'
:
0
,
'png_uncompressed_size'
:
0
,
'png_file_size'
:
0
},
{
'uri'
:
'kdgs_1_storyList'
,
'length'
:
9608
,
'png_total_count'
:
193
,
'png_uncompressed_size'
:
370884
,
'png_file_size'
:
209807
}]}
...
...
frontend/src/views/system/components/SystemChart.vue
View file @
5045466c
...
...
@@ -13,9 +13,6 @@ const seriesData = {
free_size
:
[],
free_space_size
:
[],
used_space_size
:
[],
total_size
:
[],
used_cnt
:
[],
used_pct
:
[],
};
export
default
{
...
...
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