Skip to content

Commit

Permalink
#2025 long
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 5, 2024
1 parent 8f218ed commit 2cd0a29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/rultor/agents/github/Understands.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public Iterable<Directive> process(final XML xml) throws IOException {
)
).iterator()
);
final int seen = Understands.seen(xml);
final long seen = Understands.seen(xml);
long next = seen;
int fresh = 0;
int total = 0;
Expand Down Expand Up @@ -211,12 +211,12 @@ private Req parse(final Comment.Smart comment, final XML xml)
* @param xml XML
* @return Number
*/
private static int seen(final XML xml) {
final int seen;
private static long seen(final XML xml) {
final long seen;
if (xml.nodes("/talk/wire/github-seen").isEmpty()) {
seen = 0;
} else {
seen = Integer.parseInt(
seen = Long.parseLong(
xml.xpath("/talk/wire/github-seen/text()").get(0)
);
}
Expand Down

0 comments on commit 2cd0a29

Please sign in to comment.