Skip to content

Commit

Permalink
DO NOT MERGE - fix compilation for build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelldi committed Nov 19, 2023
1 parent 1c40f3e commit 971d30e
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 @@ -25,7 +25,7 @@
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import lombok.Data;
import org.apache.commons.lang.time.DateUtils;
//import org.apache.commons.lang.time.DateUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
Expand Down Expand Up @@ -92,7 +92,7 @@ public void addScore(Operation causeOperation, int score) {
}
final IIdeStore store = AzureStoreManager.getInstance().getIdeStore();
if (score > 0) {
store.setProperty(SERVICE, NEXT_REWIND_DATE, String.valueOf(System.currentTimeMillis() + 15 * DateUtils.MILLIS_PER_DAY));
// store.setProperty(SERVICE, NEXT_REWIND_DATE, String.valueOf(System.currentTimeMillis() + 15 * DateUtils.MILLIS_PER_DAY));
}
store.setProperty(SERVICE, TOTAL_SCORE, "" + this.score.get());
}
Expand Down Expand Up @@ -123,7 +123,7 @@ public Object execute(@Nonnull Project project, @Nonnull Continuation<? super Un
if (testMode || (!StringUtils.equals(nextPopAfter, "-1") && Character.digit(c, 16) % 4 == 0)) { // enabled for only 1/4
final String nextRewindDate = store.getProperty(SERVICE, NEXT_REWIND_DATE);
if (StringUtils.isBlank(nextRewindDate)) {
store.setProperty(SERVICE, NEXT_REWIND_DATE, String.valueOf(System.currentTimeMillis() + 15 * DateUtils.MILLIS_PER_DAY));
// store.setProperty(SERVICE, NEXT_REWIND_DATE, String.valueOf(System.currentTimeMillis() + 15 * DateUtils.MILLIS_PER_DAY));
} else if (Long.parseLong(nextRewindDate) > System.currentTimeMillis()) {
final int totalScore = Integer.parseInt(Objects.requireNonNull(store.getProperty(SERVICE, TOTAL_SCORE, "0")));
store.setProperty(SERVICE, TOTAL_SCORE, totalScore / 2 + "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import com.microsoft.azure.toolkit.lib.common.task.AzureTaskManager;
import com.microsoft.azure.toolkit.lib.common.utils.TailingDebouncer;
import lombok.Getter;
import org.apache.commons.lang.time.DateUtils;
//import org.apache.commons.lang.time.DateUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.jetbrains.annotations.NotNull;

Expand Down Expand Up @@ -229,7 +229,7 @@ private static void popDaysLater(int x) {
if (x == -1) {
store.setProperty(RateManager.SERVICE, RateManager.NEXT_POP_AFTER, "-1");
} else {
store.setProperty(RateManager.SERVICE, RateManager.NEXT_POP_AFTER, String.valueOf(System.currentTimeMillis() + x * DateUtils.MILLIS_PER_DAY));
// store.setProperty(RateManager.SERVICE, RateManager.NEXT_POP_AFTER, String.valueOf(System.currentTimeMillis() + x * DateUtils.MILLIS_PER_DAY));
}
}

Expand Down

0 comments on commit 971d30e

Please sign in to comment.