Skip to content

Commit 89a5e26

Browse files
authored
Fix wrong comparison operator (#1614)
1 parent 6081d5c commit 89a5e26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/com/microsoft/applicationinsights/internal/perfcounter/PerformanceCounterContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public synchronized void stop(long timeout, TimeUnit timeUnit) {
163163
* @param collectionFrequencyInSec The timeout to wait between collection of Performance Counters.
164164
*/
165165
public void setCollectionFrequencyInSec(long collectionFrequencyInSec) {
166-
if (collectionFrequencyInSec <= MIN_COLLECTION_FREQUENCY_IN_SEC) {
166+
if (collectionFrequencyInSec < MIN_COLLECTION_FREQUENCY_IN_SEC) {
167167
String errorMessage = String.format("Collecting Interval: illegal value '%d'. The minimum value, '%d', " +
168168
"is used instead.", collectionFrequencyInSec, MIN_COLLECTION_FREQUENCY_IN_SEC);
169169
logger.error(errorMessage);

0 commit comments

Comments
 (0)