mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 00:02:52 +08:00
Update plate_size_quota.py
refactored the repeated BYTES_IN_A_MEGABYTE value.
This commit is contained in:
@@ -4,7 +4,7 @@ import shutil
|
|||||||
BYTES_IN_A_MEGABYTE = 1048576
|
BYTES_IN_A_MEGABYTE = 1048576
|
||||||
|
|
||||||
size_quota_mb=200000
|
size_quota_mb=200000
|
||||||
size_quota_bytes = size_quota_mb * 1048576
|
size_quota_bytes = size_quota_mb * BYTES_IN_A_MEGABYTE
|
||||||
dir='/var/www/html/plates/'
|
dir='/var/www/html/plates/'
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user