Message-ID: From: "davecramer (@davecramer)" To: "pgjdbc/pgjdbc" Date: Thu, 03 Jul 2025 15:41:26 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3698: fix: updateStatus message to microseconds since midnight 01-01-1970 instead of using nanotime In-Reply-To: References: List-Id: X-GitHub-Author-Login: davecramer X-GitHub-Comment-Id: 2183123557 X-GitHub-Comment-Type: review_comment X-GitHub-Commit: 0ddeeab6b47eb39416a49b3546f8647e159f6869 X-GitHub-Issue: 3698 X-GitHub-Line: 222 X-GitHub-Path: pgjdbc/src/main/java/org/postgresql/core/v3/replication/V3PGReplicationStream.java X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: review_comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3698#discussion_r2183123557 Content-Type: text/plain; charset=utf-8 (on pgjdbc/src/main/java/org/postgresql/core/v3/replication/V3PGReplicationStream.java:222) according to the docs of Duration.between() `The result of this method can be a negative period if the end is before the start. To guarantee to obtain a positive duration call abs() on the result.` So we could do that?