jsoninfo: in /config rename sgw weight section to costsCalculation
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 21 Mar 2016 14:18:17 +0000 (15:18 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 21 Mar 2016 14:18:28 +0000 (15:18 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index a775636..cc248eb 100644 (file)
@@ -916,7 +916,7 @@ void ipc_print_config(struct autobuf *abuf) {
   abuf_json_int(abuf, "stableCount", olsr_cnf->smart_gw_stablecount);
   abuf_json_int(abuf, "threshold", olsr_cnf->smart_gw_thresh);
 
-  abuf_json_mark_object(true, false, abuf, "weight");
+  abuf_json_mark_object(true, false, abuf, "costsCalculation");
   abuf_json_int(abuf, "exitLinkUp", olsr_cnf->smart_gw_weight_exitlink_up);
   abuf_json_int(abuf, "exitLinkDown", olsr_cnf->smart_gw_weight_exitlink_down);
   abuf_json_int(abuf, "etx", olsr_cnf->smart_gw_weight_etx);