Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add msg_get_host_speed
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 2 Aug 2005 00:01:47 +0000 (00:01 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 2 Aug 2005 00:01:47 +0000 (00:01 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1575 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/host.c

index a6cc623..21f3c09 100644 (file)
@@ -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));
+}