From fc19ebbc41f224a91f0cb749cdafe024031869aa Mon Sep 17 00:00:00 2001 From: test Date: Wed, 7 Aug 2024 06:07:58 +1000 Subject: [PATCH] Update StatCommands.java --- .../commands/manager/v2/impl/pw/commands/StatCommands.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/link/locutus/discord/commands/manager/v2/impl/pw/commands/StatCommands.java b/src/main/java/link/locutus/discord/commands/manager/v2/impl/pw/commands/StatCommands.java index 7ab07f6a..f5f197e2 100644 --- a/src/main/java/link/locutus/discord/commands/manager/v2/impl/pw/commands/StatCommands.java +++ b/src/main/java/link/locutus/discord/commands/manager/v2/impl/pw/commands/StatCommands.java @@ -1530,14 +1530,11 @@ public String allianceMetricsCompareByTurn(@Me IMessageIO channel, @Me Guild gui } @Command(desc = "Compare the metric over time between multiple alliances") - public String militarizationTime(@Me IMessageIO channel, DBAlliance alliance, @Default("7d") @Timediff long start_time, + public String militarizationTime(@Me IMessageIO channel, DBAlliance alliance, @Default("7d") @Timestamp long start_time, @Switch("e") @Timestamp Long end_time, @Switch("j") boolean attach_json, @Switch("c") boolean attach_csv) throws IOException { if (end_time == null) end_time = System.currentTimeMillis(); - end_time = Math.max(end_time, System.currentTimeMillis()); - start_time = end_time - start_time; - long endTurn = Math.min(TimeUtil.getTurn(), TimeUtil.getTurn(end_time)); long startTurn = TimeUtil.getTurn(start_time);