From: alegrand Date: Tue, 2 Aug 2005 00:01:47 +0000 (+0000) Subject: Add msg_get_host_speed X-Git-Tag: v3.3~3781 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/bd5ced03e2b3636c21aed9ae734b2728e18b7415?hp=db8a1188f020fa641b311dc3ca15a9775a6df67a Add msg_get_host_speed git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1575 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/msg/host.c b/src/msg/host.c index a6cc623bf5..21f3c09868 100644 --- a/src/msg/host.c +++ b/src/msg/host.c @@ -175,3 +175,15 @@ int MSG_get_host_msgload(m_host_t h) return(0); /* return(surf_workstation_resource->extension_public->get_load(h->simdata->host)); */ } + +/** \ingroup m_host_management + * \brief Return the speed of the processor (in Mflop/s), regardless of + the current load on the machine. + */ +double MSG_get_host_speed(m_host_t h) +{ + xbt_assert0((h!= NULL), "Invalid parameters"); + + return(surf_workstation_resource-> + extension_public->get_speed(h->simdata->host,1.0)); +}