(in *charttpl.DimensionOptions)
| 263 | } |
| 264 | |
| 265 | func compileDimensionOptions(in *charttpl.DimensionOptions) compiledDimensionOptions { |
| 266 | out := compiledDimensionOptions{ |
| 267 | multiplier: 1, |
| 268 | divisor: 1, |
| 269 | } |
| 270 | if in == nil { |
| 271 | return out |
| 272 | } |
| 273 | out.hidden = in.Hidden |
| 274 | out.float = in.Float |
| 275 | if in.Multiplier != 0 { |
| 276 | out.multiplier = in.Multiplier |
| 277 | } |
| 278 | if in.Divisor != 0 { |
| 279 | out.divisor = in.Divisor |
| 280 | } |
| 281 | return out |
| 282 | } |
| 283 | |
| 284 | func resolveAlgorithm(raw string, metricKinds map[string]bool) (program.Algorithm, error) { |
| 285 | normalized := strings.TrimSpace(raw) |
no outgoing calls
no test coverage detected
searching dependent graphs…