Skip to content

Commit

Permalink
tools/rw-heatmaps: update documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Valdes <[email protected]>
  • Loading branch information
ivanvc committed Feb 14, 2024
1 parent 5503a75 commit 84658b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rw-heatmaps/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type options struct {
outputFormat string
}

// Returns a new options for the command with the default values applied.
// newOptions returns a new options for the command with the default values applied.
func newOptions() options {
return options{
outputFormat: "png",
Expand Down
1 change: 1 addition & 0 deletions tools/rw-heatmaps/pkg/chart/heatmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
type pow2Ticks struct{}

// Ticks returns the ticks for the log2 scale.
// It implements the plot.Ticker interface.
func (pow2Ticks) Ticks(min, max float64) []plot.Tick {
var t []plot.Tick
for i := math.Log2(min); math.Pow(2, i) <= max; i++ {
Expand Down

0 comments on commit 84658b7

Please sign in to comment.