Question about the calculation of service check latency

Schimpke, Dr. Thomas - bhn Schimpke.Thomas at bhn-services.com
Mon Oct 31 10:42:34 CET 2011


Hi Yu,

conversion from Microseconds to seconds...and then convert the result to 
double.

Thomas



On 10/31/2011 03:24 AM, Yu Watanabe wrote:
> Hi all!
>
> I would like to ask question about the calculation of service check latency.
>
> In the code (events.c), the service check latency is calculated as,
>
> latency = (double)((double)(tv.tv_sec - event->run_time) + (double)(tv.tv_usec / 1000) / 1000.0);
>
> I was wondering, what is the below caculation is meant for?
>
> (double)(tv.tv_usec / 1000) / 1000.0);
>
> Thanks,
> Yu
>
>
> ------------------------------------------------------------------------------
> Get your Android app more play: Bring it to the BlackBerry PlayBook
> in minutes. BlackBerry App World™ now supports Android™ Apps
> for the BlackBerry® PlayBook™. Discover just how easy and simple
> it is! http://p.sf.net/sfu/android-dev2dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null


------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World™ now supports Android™ Apps 
for the BlackBerry® PlayBook™. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list