Skip to content

Commit

Permalink
[HOT-FIX] Fix compilation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
gatorsmile committed Oct 6, 2018
1 parent edf4286 commit 7ef65c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ class GangliaSink(val property: Properties, val registry: MetricRegistry,
val ttl = propertyToOption(GANGLIA_KEY_TTL).map(_.toInt).getOrElse(GANGLIA_DEFAULT_TTL)
val dmax = propertyToOption(GANGLIA_KEY_DMAX).map(_.toInt).getOrElse(GANGLIA_DEFAULT_DMAX)
val mode: UDPAddressingMode = propertyToOption(GANGLIA_KEY_MODE)
.map(u => GMetric.UDPAddressingMode.valueOf(u.toUpperCase(Locale.Root)))
.map(u => GMetric.UDPAddressingMode.valueOf(u.toUpperCase(Locale.ROOT)))
.getOrElse(GANGLIA_DEFAULT_MODE)
val pollPeriod = propertyToOption(GANGLIA_KEY_PERIOD).map(_.toInt)
.getOrElse(GANGLIA_DEFAULT_PERIOD)
val pollUnit: TimeUnit = propertyToOption(GANGLIA_KEY_UNIT)
.map(u => TimeUnit.valueOf(u.toUpperCase(Locale.Root)))
.map(u => TimeUnit.valueOf(u.toUpperCase(Locale.ROOT)))
.getOrElse(GANGLIA_DEFAULT_UNIT)

MetricsSystem.checkMinimalPollingPeriod(pollUnit, pollPeriod)
Expand Down

0 comments on commit 7ef65c0

Please sign in to comment.