diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-11-17 18:10:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 18:10:59 +0200 |
commit | cd756ea7f8c013cf7598fc75546eb79c00cc9cf8 (patch) | |
tree | c815045a6c4b5f03b79a2fd443311638a3fffaa9 /collectors | |
parent | 4d09131255f907966fceaa60052e4f91e3b01e51 (diff) |
proc_net_dev: keep nic_speed_max in kilobits (#16429)
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/proc.plugin/proc_net_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/proc.plugin/proc_net_dev.c b/collectors/proc.plugin/proc_net_dev.c index f7b2f26103..da7120cf3a 100644 --- a/collectors/proc.plugin/proc_net_dev.c +++ b/collectors/proc.plugin/proc_net_dev.c @@ -1446,7 +1446,7 @@ int do_proc_net_dev(int update_every, usec_t dt) { } rrdsetvar_custom_chart_variable_set( - d->st_bandwidth, d->chart_var_speed, (NETDATA_DOUBLE)d->speed); + d->st_bandwidth, d->chart_var_speed, (NETDATA_DOUBLE)d->speed * KILOBITS_IN_A_MEGABIT); if (d->speed) { d->speed_file_exists = 1; |