Skip to content

Commit

Permalink
network: update default template
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrssreal committed Dec 13, 2024
1 parent 2c64d69 commit b89daf4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Shows connected ESSID as well as both public and private IPv4 and IPv6 addresses
| name | default | description |
| ---------- | ----------------------------- | ------------------------------- |
| `no_value` | `"NA"` | Value for not defined elements. |
| `template` | `"{IPv4} · {IPv6} · {ESSID}"` | Text representation. Placeholders surrounded by curly braces are `{IPv4}`, `{IPv6}`, `{LocalIPv4}`, `{LocalIPv6}` and `{ESSID}`. |
| `template` | `"{LocalIPv4} · {ESSID}"` | Text representation. Placeholders surrounded by curly braces are `{IPv4}`, `{IPv6}`, `{LocalIPv4}`, `{LocalIPv6}` and `{ESSID}`. |
### Feature: Time
Expand Down
2 changes: 1 addition & 1 deletion examples/default-settings/defaults.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
network: {
no_value: NA
template: "{IPv4} · {IPv6} · {ESSID}"
template: "{LocalIPv4} · {ESSID}"
}
time: {
format: %Y-%m-%d %H:%M
Expand Down
2 changes: 1 addition & 1 deletion examples/default-settings/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"network": {
"no_value": "NA",
"template": "{IPv4} · {IPv6} · {ESSID}"
"template": "{LocalIPv4} · {ESSID}"
},
"time": {
"format": "%Y-%m-%d %H:%M",
Expand Down
2 changes: 1 addition & 1 deletion examples/default-settings/defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ update_interval = 20

[network]
no_value = "NA"
template = "{IPv4} · {IPv6} · {ESSID}"
template = "{LocalIPv4} · {ESSID}"

[time]
format = "%Y-%m-%d %H:%M"
Expand Down
2 changes: 1 addition & 1 deletion examples/default-settings/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cpu_load:

network:
no_value: NA
template: "{IPv4} · {IPv6} · {ESSID}"
template: "{LocalIPv4} · {ESSID}"

time:
format: "%Y-%m-%d %H:%M"
Expand Down
4 changes: 2 additions & 2 deletions src/features/network/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl ConfigType for ConfigEntry {
FEATURE_NAME,
map!(
"no_value" => "NA",
"template" => "{IPv4} · {IPv6} · {ESSID}",
"template" => "{LocalIPv4} · {ESSID}",
),
)
}
Expand Down Expand Up @@ -103,7 +103,7 @@ mod tests {
fn default_map() -> HashMap<String, Value> {
let mut map = HashMap::new();
map.insert("no_value".to_owned(), "NA".into());
map.insert("template".to_owned(), "{IPv4} · {IPv6} · {ESSID}".into());
map.insert("template".to_owned(), "{LocalIPv4} · {ESSID}".into());

map
}
Expand Down

0 comments on commit b89daf4

Please sign in to comment.