Skip to content

Commit a61d81b

Browse files
authored
Calculate compute_backpressure_throttling_seconds correctly
The original value that we get is measured in microseconds. It comes from a calculation using Postgres' GetCurrentTimestamp(), whihc is implemented in terms of gettimeofday(2). Signed-off-by: Tristan Partin <[email protected]>
1 parent 05381a4 commit a61d81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SELECT neon.backpressure_throttling_time()::float8 / 1000 AS throttled;
1+
SELECT (neon.backpressure_throttling_time()::float8 / 1000000) AS throttled;

0 commit comments

Comments
 (0)