Skip to content

Commit

Permalink
Update StatCommands.java
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Aug 6, 2024
1 parent f218007 commit fc19ebb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fc19ebb

Please sign in to comment.