aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-03 23:09:11 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-03 23:09:11 +0300
commit69580ef09cfb0f41fa50d3252f4a83cfb7f153b5 (patch)
tree87f2c4c07719f30698a0f34c61020c395181c7d3 /index.html
parentprune obsolete entry from .gitignore (diff)
downloadlinux-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 '')
-rw-r--r--index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.html b/index.html
index 8c46b82..35d118e 100644
--- a/index.html
+++ b/index.html
@@ -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']);