Actually truncate the 64bit int this time.
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 17 Feb 2012 18:53:50 +0000 (10:53 -0800)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 17 Feb 2012 18:53:50 +0000 (10:53 -0800)
cgi-bin/pgstatus.pl

index bfe50ce1eb2b368fc91082e176fb1c8c25f04b6e..16ac79f75e569612ecbed99337a56b858bb3c7d2 100755 (executable)
@@ -327,7 +327,7 @@ $sth=$db->prepare($logst);
 
 $sth->bind_param(1,$animal);
 $sth->bind_param(2,$dbdate);
 
 $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);
 $sth->bind_param(4,$stage);
 $sth->bind_param(5,$log);
 $sth->bind_param(6,$conf);