diff --git a/Resource_Info/app.rb b/Resource_Info/app.rb index 02e6e8f..4ea570d 100755 --- a/Resource_Info/app.rb +++ b/Resource_Info/app.rb @@ -56,6 +56,7 @@ def output() limit = (defined_limit[user] == "unlimited")? get_resource_limit(g).to_i : defined_limit[user].to_i / 3600 usage = row[1].to_i / 3600 # NH avail = (defined_limit[user] == "unlimited")? dashboard_resource(g).avail : limit - usage + avail = 0 if avail.to_i < 0 tmp.push([user, limit, usage, avail]) end diff --git a/Resource_Info/views/index.erb b/Resource_Info/views/index.erb index fa2e9e3..ff2c596 100755 --- a/Resource_Info/views/index.erb +++ b/Resource_Info/views/index.erb @@ -35,16 +35,14 @@ input {
User | -Resource (NH) | - <% if @is_admin[i] %> -Change Limit | - <% end %> +Resource (NH) | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Limit | -Usage | -Available | -Ratio | +Limit | +Usage | +Available | +Ratio | +Change Limit (For only a theme manager) |
||
- <% end %> <% else %> | - | - | - | - | - <% if @is_admin[i] %>- | <% end %> - <% end %>