Skip to content

Commit 15e4d06

Browse files
Fix analytics flush timer (#23)
1 parent b83e35c commit 15e4d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/flagsmith/sdk/analytics_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def flush
3333

3434
def track_feature(feature_name)
3535
@analytics_data[feature_name] = @analytics_data.fetch(feature_name, 0) + 1
36-
flush if (Time.now - @last_flushed) > TIMER * 1000
36+
flush if (Time.now - @last_flushed) > TIMER
3737
end
3838
end
3939
end

0 commit comments

Comments
 (0)