Commit 95ae65cd authored by Cool Fire's avatar Cool Fire

Fix unit for disk quota requests

parent 51bb1943
Pipeline #1759 passed with stage
in 3 minutes and 17 seconds
......@@ -15,8 +15,8 @@ class Manager2Api < Sinatra::Base
def limit_disk_set(username, limit)
data = git_get
data[username]['properties']['quota'] =
{ 'soft' => "#{limit.to_i}G", 'hard' => "#{limit.to_i + 1}G" }
git_put data, "Set disk quota; user: #{username}, limit: #{limit}G"
{ 'soft' => "#{limit.to_i}M", 'hard' => "#{limit.to_i + 250}M" }
git_put data, "Set disk quota; user: #{username}, limit: #{limit}M"
end
# CPU limits
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment