mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复刷新硬件的bug
parent
539bf7bec8
commit
4dbf332a56
|
@ -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
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
openssl brew install libtiff libjpeg webp little-cms2
|
||||
brew install libtiff libjpeg webp little-cms2 openssl
|
||||
|
|
Loading…
Reference in New Issue