Skip to content

Commit 5789fe3

Browse files
xinlian12annie-mac
andauthored
fix (#46516)
Co-authored-by: annie-mac <[email protected]>
1 parent 1ee4dc3 commit 5789fe3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/cosmos/azure-cosmos-spark_3_2-12/src/main/scala/com/azure/cosmos/spark/CosmosConstants.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ private[cosmos] object CosmosConstants {
8585
.orElse(sys.env.get(MetricsHistoryEnvName))
8686
.getOrElse(DefaultMetricsHistory).toInt
8787
val MetricsHistoryDecayFactor: Double =
88-
Option(System.getProperty(MetricsHistoryPropertyName))
89-
.orElse(sys.env.get(MetricsHistoryEnvName))
90-
.getOrElse(DefaultMetricsHistory) .toDouble
88+
Option(System.getProperty(MetricsHistoryDecayFactorPropertyName))
89+
.orElse(sys.env.get(MetricsHistoryDecayFactorEnvName))
90+
.getOrElse(DefaultMetricsHistoryDecayFactor).toDouble
9191
}
9292
}

0 commit comments

Comments
 (0)