Override empty net addr with default place holder
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 6 Mar 2019 02:06:55 +0000 (21:06 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 6 Mar 2019 02:06:55 +0000 (21:06 -0500)
x2/src/awk/exe/bar.awk

index b307951..930db5d 100644 (file)
@@ -162,7 +162,8 @@ function bar_make_status_net_iface_status(interface,    addr) {
 
 function bar_make_status_net_addr(interface,    src) {
     src = "khatus_sensor_net_addr_io"
-    return cache_get_fmt_def(src, "addr" Kfs interface, 5, "%s")
+    addr = cache_get_fmt_def(src, "addr" Kfs interface, 5, "%s")
+    return addr ? addr : "--"
 }
 
 function bar_make_status_net_io_w(interface,    src) {
This page took 0.027786 seconds and 4 git commands to generate.