Skip to content

Commit

Permalink
Fix calculating network speed (everything *except* vlan, not vise-versa)
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Apr 29, 2024
1 parent 3fa6b89 commit 86e6ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ impl ClickHouse {
WITH
-- exclude MD/LVM
metric LIKE '%_sd%' OR metric LIKE '%_nvme%' AS is_disk,
metric NOT LIKE '%vlan%' AS is_vlan
metric LIKE '%vlan%' AS is_vlan
-- NOTE: cast should be after aggregation function since the type is Float64
SELECT
CAST(minIf(value, metric == 'OSUptime') AS UInt64) AS os_uptime,
Expand Down

0 comments on commit 86e6ef3

Please sign in to comment.