Commit a4cab3ef199a68ed3403de1d6fab1b74e5ce1130
1 parent
14660814
make value to string as this is the easiest way to support leading 0 as in 05, 08, etc.
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | #include "http/message.h" |
34 | 34 | #include "http/header.h" |
35 | 35 | |
36 | -#define RESP_DATA "{\"ctime\":%ld,\"vnext\":%ld,\"value\":%02d}" | |
36 | +#define RESP_DATA "{\"ctime\":%ld,\"vnext\":%ld,\"value\":\"%02d\"}" | |
37 | 37 | |
38 | 38 | HttpResponse |
39 | 39 | httpResponseRandval(time_t ctime, int value) | ... | ... |
Please
register
or
login
to post a comment