X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fhardban.phh;h=05ca8e11a521feed47583374d8cf7bb0e966eafb;hb=efe073ca460ec29111cf35dfb760016bea4a7dc5;hp=ffec9c631ee356d085285d3bc8c929333e075e1d;hpb=312a6acc00ec7f331ab461894c319776eec95cae;p=brisk.git diff --git a/web/Obj/hardban.phh b/web/Obj/hardban.phh index ffec9c6..05ca8e1 100644 --- a/web/Obj/hardban.phh +++ b/web/Obj/hardban.phh @@ -44,6 +44,8 @@ class Hardban { } class Hardbans { + static $delta_t; + var $item; var $item_n; var $mod; @@ -247,7 +249,8 @@ class Hardbans { return (FALSE); } if (sem_acquire($res)) { - log_lock("LOCK hardbans"); + self::$delta_t = microtime(TRUE); + log_lock("LOCK hardbans [".self::$delta_t."]"); return ($res); } else @@ -258,7 +261,7 @@ class Hardbans { { GLOBAL $sess; - log_lock("UNLOCK hardbans"); + log_lock("UNLOCK hardbans [".(microtime(TRUE) - (self::$delta_t))."]"); return (sem_release($res)); }