0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 04:51:44 +00:00
packages/net/apinger/patches/060-format-alarm-list.patch
Jaymin Patel 4281b7639c apinger: add rrd graph support
- add package apinger-rrd for RRD graphs
- add RPC to get an overview and update graphs
- fix interface hotplug to restart apinger instance
- add patch to split alarms list in the status

Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
2022-07-29 14:12:45 +05:30

13 lines
264 B
Diff

--- a/src/apinger.c
+++ b/src/apinger.c
@@ -860,6 +860,9 @@ char *buf1,*buf2;
a=al->alarm;
if(config->status_format){
fprintf(f,"%s",a->name);
+ if(al->next){
+ fprintf(f,",");
+ }
}
else{
fprintf(f," \"%s\"",a->name);