From 0c588d23d6fb0e45951568788077791663b88091 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Fri, 17 Feb 2012 10:53:50 -0800 Subject: [PATCH] Actually truncate the 64bit int this time. --- cgi-bin/pgstatus.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/pgstatus.pl b/cgi-bin/pgstatus.pl index bfe50ce..16ac79f 100755 --- a/cgi-bin/pgstatus.pl +++ b/cgi-bin/pgstatus.pl @@ -327,7 +327,7 @@ $sth=$db->prepare($logst); $sth->bind_param(1,$animal); $sth->bind_param(2,$dbdate); -$sth->bind_param(3,$res); +$sth->bind_param(3,$res & 0x8fffffff); # in case we get a 64 bit int status! $sth->bind_param(4,$stage); $sth->bind_param(5,$log); $sth->bind_param(6,$conf); -- 2.30.2