Skip to content

Commit

Permalink
Merge pull request slok#41 from slok/donut
Browse files Browse the repository at this point in the history
Fix gauges not being showed when color change on gauge was applied
  • Loading branch information
slok authored May 15, 2019
2 parents 00dbca6 + a913037 commit ded82ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
- Alias flag to override dashboard datasource ID using user datasource IDs.
- Fallback dashboard referenced datasources to user datasources.

### Fixed

- Gauges that had color thresholds not being show.

## [0.1.0] - 2019-05-13

### Added
Expand Down
6 changes: 3 additions & 3 deletions internal/view/render/termdash/gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func (g *gauge) SetColor(hexColor string) error {
return err
}

// Replace the instance.
g.widget = d

// Replace the instance value. We need to replace the content of the widget,
// is ok to copy the value in this case although the widget donut has a mutex.
*g.widget = *d
return nil
}

0 comments on commit ded82ea

Please sign in to comment.