aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wfm.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/wfm.c b/wfm.c
index ece08cd..ed4ee43 100644
--- a/wfm.c
+++ b/wfm.c
@@ -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);