home
/
code
/
khatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7a8307
)
Override empty net addr with default place holder
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 6 Mar 2019 02:06:55 +0000
(21:06 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 6 Mar 2019 02:06:55 +0000
(21:06 -0500)
x2/src/awk/exe/bar.awk
patch
|
blob
|
blame
|
history
diff --git
a/x2/src/awk/exe/bar.awk
b/x2/src/awk/exe/bar.awk
index
b307951
..
930db5d
100644
(file)
--- a/
x2/src/awk/exe/bar.awk
+++ b/
x2/src/awk/exe/bar.awk
@@
-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.