Update plate_size_quota.py

refactored the repeated BYTES_IN_A_MEGABYTE value.
This commit is contained in:
silaha
2014-08-17 22:13:37 +04:00
parent 0bfda58451
commit 4e49022164

View File

@@ -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/'