diff options
author | tenox <as@tenoware.com> | 2016-08-21 01:43:08 -0700 |
---|---|---|
committer | tenox <as@tenoware.com> | 2016-08-21 01:43:08 -0700 |
commit | c888097fb6951d9db173105c2a75209396dccec5 (patch) | |
tree | d4461f1378b29eadca54d4e733a01ead40e2fe9c | |
parent | 9e58c58420fdc9c801c96fb427e6fdb5c4a26423 (diff) | |
download | wfm-c888097fb6951d9db173105c2a75209396dccec5.tar.gz |
upload spinner update
-rw-r--r-- | wfm.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -50,14 +50,12 @@ void upload_status(void) { fprintf(cgiOut, "Cache-Control: no-cache\r\n"); cgiHeaderContentType("text/plain"); + time(&t); - if(shm_val) { - fprintf(cgiOut, "=%s=\r\n", shm_val); - } - else { - time(&t); - fprintf(cgiOut, "=%s=\r\n", spin[(int)t % 4]); - } + if(shm_val) + fprintf(cgiOut, "[ %s %s ]\r\n", spin[(int)t % 4], shm_val); + else + fprintf(cgiOut, "[ %s ]\r\n", spin[(int)t % 4]); if (shm_val) shmdt(shm_val); |