Skip to content

Commit

Permalink
Fix fst count
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Sep 6, 2023
1 parent 705a281 commit c9662a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ public class TelemetryConfigProviderImpl implements TelemetryConfigProvider {

private final TelemetryStorageConsumer mTelemetryConsumer;
private final SplitClientConfig mSplitClientConfig;
private final int mFlagSetCount;
private final int mValidFlagSetCount;
private final int mInvalidFlagSetCount;

public TelemetryConfigProviderImpl(@NonNull TelemetryStorageConsumer telemetryConsumer,
@NonNull SplitClientConfig splitClientConfig,
int flagSetCount,
int validFlagSetCount,
int invalidFlagSetCount) {
mTelemetryConsumer = checkNotNull(telemetryConsumer);
mSplitClientConfig = checkNotNull(splitClientConfig);
mFlagSetCount = flagSetCount;
mValidFlagSetCount = validFlagSetCount;
mInvalidFlagSetCount = invalidFlagSetCount;
}

Expand All @@ -50,7 +50,7 @@ public Config getConfigTelemetry() {
config.setImpressionsQueueSize(mSplitClientConfig.impressionsQueueSize());
config.setEventsQueueSize(mSplitClientConfig.eventsQueueSize());
config.setUserConsent(mSplitClientConfig.userConsent().intValue());
config.setFlagSetsTotal(mFlagSetCount);
config.setFlagSetsTotal(mValidFlagSetCount + mInvalidFlagSetCount);
config.setFlagSetsInvalid(mInvalidFlagSetCount);
if (mSplitClientConfig.impressionsMode() == ImpressionsMode.DEBUG) {
config.setImpressionsMode(io.split.android.client.telemetry.model.ImpressionsMode.DEBUG.intValue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void close() {
assertTrue(configTelemetry.getUrlOverrides().isEvents());
assertTrue(configTelemetry.getUrlOverrides().isAuth());
assertTrue(configTelemetry.getUrlOverrides().isStream());
assertEquals(4, configTelemetry.getFlagSetsTotal());
assertEquals(6, configTelemetry.getFlagSetsTotal());
assertEquals(2, configTelemetry.getFlagSetsInvalid());
}
}

0 comments on commit c9662a3

Please sign in to comment.