Skip to content

Commit

Permalink
fix #856
Browse files Browse the repository at this point in the history
Signed-off-by: Slach <bloodjazman@gmail.com>
  • Loading branch information
Slach committed Mar 2, 2024
1 parent 0e16d24 commit 62e9b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/clickhouse/clickhouse.go
Expand Up @@ -271,7 +271,7 @@ func (ch *ClickHouse) getDisksFromSystemDisks(ctx context.Context) ([]Disk, erro
if len(diskFields) > 0 && diskFields[0].DiskTypePresent > 0 {
diskTypeSQL = "any(d.type)"
}
diskFreeSpaceSQL := "0"
diskFreeSpaceSQL := "toUInt64(0)"
if len(diskFields) > 0 && diskFields[0].FreeSpacePresent > 0 {
diskFreeSpaceSQL = "min(d.free_space)"
}
Expand Down

0 comments on commit 62e9b31

Please sign in to comment.