| Line 521: |
Line 521: |
| | var lua_memory_usage = Math.round(100 * +lua_memory[1] / +lua_memory[2]); | | var lua_memory_usage = Math.round(100 * +lua_memory[1] / +lua_memory[2]); |
| | if (page_size_usage >= 90) { | | if (page_size_usage >= 90) { |
| − | $('#content').prepend('<pre style="color: red; margin: auto; width: 50%; text-align: center;">Page size: ' + page_size_usage + '%</pre>'); | + | $('#content').prepend('<pre style="color: red; margin: 5px; padding: 5px; width: 100%; text-align: center;">Page size: ' + page_size_usage + '%</pre>'); |
| | } else { | | } else { |
| − | $('#content').append('<pre style="color: green; margin: auto; width: 50%; text-align: center;">Page size: ' + page_size_usage + '%</pre>'); | + | $('#content').after('<pre style="color: green; margin: 5px; padding: 5px; width: 100%; text-align: center;">Page size: ' + page_size_usage + '%</pre>'); |
| | } | | } |
| | if (lua_time_usage >= 90) { | | if (lua_time_usage >= 90) { |
| − | $('#content').prepend('<pre style="color: red; margin: auto; width: 50%; text-align: center;">Lua time: ' + lua_time_usage + '%</pre>'); | + | $('#content').prepend('<pre style="color: red; margin: 5px; padding: 5px; width: 100%; text-align: center;">Lua time: ' + lua_time_usage + '%</pre>'); |
| | } else { | | } else { |
| − | $('#content').append('<pre style="color: green; margin: auto; width: 50%; text-align: center;">Lua time: ' + lua_time_usage + '%</pre>'); | + | $('#content').after('<pre style="color: green; margin: 5px; padding: 5px; width: 100%; text-align: center;">Lua time: ' + lua_time_usage + '%</pre>'); |
| | } | | } |
| | if (lua_memory_usage >= 90) { | | if (lua_memory_usage >= 90) { |
| − | $('#content').prepend('<pre style="color: red; margin: auto; width: 50%; text-align: center;">Lua memory: ' + lua_memory_usage + '%</pre>'); | + | $('#content').prepend('<pre style="color: red; margin: 5px; padding: 5px; width: 100%; text-align: center;">Lua memory: ' + lua_memory_usage + '%</pre>'); |
| | } else { | | } else { |
| − | $('#content').append('<pre style="color: green; margin: auto; width: 50%; text-align: center;">Lua memory: ' + lua_memory_usage + '%</pre>'); | + | $('#content').after('<pre style="color: green; margin: 5px; padding: 5px; width: 100%; text-align: center;">Lua memory: ' + lua_memory_usage + '%</pre>'); |
| | } | | } |
| | } | | } |