Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
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
ops
jumpserver
Commits
bf34c2e3
Commit
bf34c2e3
authored
Jan 02, 2018
by
q4speed
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
54bcb33a
6d15f60c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
tasks.py
apps/assets/tasks.py
+1
-1
utils.py
apps/common/utils.py
+4
-0
config_example.py
config_example.py
+1
-1
mac_requirements.txt
requirements/mac_requirements.txt
+1
-1
No files found.
apps/assets/tasks.py
View file @
bf34c2e3
...
...
@@ -19,7 +19,7 @@ FORKS = 10
TIMEOUT
=
60
logger
=
get_logger
(
__file__
)
CACHE_MAX_TIME
=
60
*
60
*
60
disk_pattern
=
re
.
compile
(
r'^hd|sd'
)
disk_pattern
=
re
.
compile
(
r'^hd|sd
|xvd
'
)
@shared_task
...
...
apps/common/utils.py
View file @
bf34c2e3
...
...
@@ -327,6 +327,10 @@ def capacity_convert(size, expect='auto', rate=1000):
if
rate
>
std_size
/
rate_
>
1
:
expect
=
unit
break
if
expect
not
in
rate_mapping
:
expect
=
'K'
expect_size
=
std_size
/
rate_mapping
[
expect
]
return
expect_size
,
expect
...
...
config_example.py
View file @
bf34c2e3
...
...
@@ -119,5 +119,5 @@ class ProductionConfig(Config):
# Default using Config settings, you can write if/else for different env
config
=
Config
()
config
=
Development
Config
()
requirements/mac_requirements.txt
View file @
bf34c2e3
openssl brew install libtiff libjpeg webp little-cms2
brew install libtiff libjpeg webp little-cms2 openssl
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