X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=x2%2Fsrc%2Fawk%2Fexe%2Fbar.awk;h=0e81833bf07f388875045fa6ce1da67259c192bc;hb=fcc91548b828f5f4dcbaebe64c18cc6bb1df5a88;hp=9b7328c9888538d1217a1d609c80f4ebe90dcf87;hpb=01da02dd035f18586b3435743c6840ad77ba62b9;p=khatus.git diff --git a/x2/src/awk/exe/bar.awk b/x2/src/awk/exe/bar.awk index 9b7328c..0e81833 100644 --- a/x2/src/awk/exe/bar.awk +++ b/x2/src/awk/exe/bar.awk @@ -182,6 +182,14 @@ function bar_make_status_net_wifi(interface, src) { return cache_get_fmt_def(src, "status" Kfs interface, 10, "%s") } +function bar_make_status_net_wifi_link(interface, link) { + cache_get_fmt_def(link, "khatus_sensor_net_wifi_status", "link" Kfs interface, 10) + if (!link["is_expired"] && link["value"]) + return sprintf("%d%%", link["value"]) + else + return "--" +} + # ----------------------------------------------------------------------------- # Bluetooth # -----------------------------------------------------------------------------