From 500a9c017f3d033fa4eaa336c5d116bcbe31cf70 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 9 Aug 2009 11:47:54 +0200 Subject: Multi::IRC: Fix double-notify bug timestamptz data types have sub-second precision, but we use time() with second precision for comparing, resulting in false positives. Using Time::HiRes::time should give the same precision as PostgreSQL's NOW(), so things should be working fine now. It's still a bad idea to use Multi's time instead of a PostgreSQL value for comparing... should really think of a clean way of fixing this. --- lib/Multi/IRC.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Multi/IRC.pm') diff --git a/lib/Multi/IRC.pm b/lib/Multi/IRC.pm index ff122405..63acd0a9 100644 --- a/lib/Multi/IRC.pm +++ b/lib/Multi/IRC.pm @@ -15,6 +15,7 @@ use POE qw| |; use POE::Component::IRC::Common ':ALL'; use URI::Escape 'uri_escape_utf8'; +use Time::HiRes 'time'; use constant { USER => ARG0, -- cgit v1.2.3