Skip to content

Commit

Permalink
Fix newline on stats output
Browse files Browse the repository at this point in the history
  • Loading branch information
wfarr committed Dec 3, 2013
1 parent a4d71a5 commit 2ab4878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ int nez_cmd_stats(int sd, char* object, char* rest)
int unknown = 0;
int ok = 0;

char* json = "{ \"warning\": %d, \"unknown\": %d, \"critical\": %d, \"ok\": %d }";
char* json = "{ \"warning\": %d, \"unknown\": %d, \"critical\": %d, \"ok\": %d }\n";

for (service* svc = service_list; svc; svc = svc->next) {
switch(svc->current_state) {
Expand Down

0 comments on commit 2ab4878

Please sign in to comment.