diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-03 23:09:11 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-03 23:09:11 +0300 |
commit | 69580ef09cfb0f41fa50d3252f4a83cfb7f153b5 (patch) | |
tree | 87f2c4c07719f30698a0f34c61020c395181c7d3 /index.html | |
parent | prune obsolete entry from .gitignore (diff) | |
download | linux-status-69580ef09cfb0f41fa50d3252f4a83cfb7f153b5.tar.gz linux-status-69580ef09cfb0f41fa50d3252f4a83cfb7f153b5.zip |
add server.py
It runs a web server and imports the request handling classes from
get.py directly, hence eliminating the performance culprit (which was
the `import` processing for each request).
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -76,7 +76,7 @@ function set_top(data) { } function refresh_top() { - $.get('cgi-bin/get.sh?what=top', function(data) { + $.get('top', function(data) { set_top(JSON.parse(data)); }); } @@ -162,7 +162,7 @@ function set_users(data) { } function refresh_status() { - $.get('cgi-bin/get.sh?what=status', function(data) { + $.get('status', function(data) { data = JSON.parse(data); set_top(data['top']); set_hostname(data['hostname']); @@ -172,7 +172,7 @@ function refresh_status() { } function refresh_timers() { - $.get('cgi-bin/get.sh?what=timers', function(data) { + $.get('timers', function(data) { data = JSON.parse(data); set_system(data['system']); set_users(data['user']); |