1 diff --git a/misc/lnstat.c b/misc/lnstat.c
2 index 8608cfa..8e8b1ba 100644
5 @@ -253,7 +253,7 @@ int main(int argc, char **argv)
9 - unsigned long count = 1;
10 + unsigned long count = 0;
11 struct table_hdr *header;
12 static struct field_params fp;
13 int num_req_files = 0;
14 @@ -366,7 +366,7 @@ int main(int argc, char **argv)
18 - for (i = 0; i < count; i++) {
19 + for (i = 0; i < count || !count; ) {
20 lnstat_update(lnstat_files);
21 if (mode == MODE_JSON)
22 print_json(stdout, lnstat_files, &fp);
23 @@ -377,8 +377,10 @@ int main(int argc, char **argv)
24 print_line(stdout, lnstat_files, &fp);
28 + if (i < count - 1 || !count)