From 3880211b850704febd20f1a482b4617919ed9025 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 26 Jan 2015 21:57:09 +0100 Subject: [PATCH] rename the property used by the energy plugin for clarity --- examples/platforms/energy_platform.xml | 4 ++-- src/surf/plugins/energy.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/platforms/energy_platform.xml b/examples/platforms/energy_platform.xml index cb6d3325fc..837545b787 100644 --- a/examples/platforms/energy_platform.xml +++ b/examples/platforms/energy_platform.xml @@ -7,10 +7,10 @@ - + - + diff --git a/src/surf/plugins/energy.cpp b/src/surf/plugins/energy.cpp index 4fd94acf79..6c55cf414a 100644 --- a/src/surf/plugins/energy.cpp +++ b/src/surf/plugins/energy.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010, 2012-2014. The SimGrid Team. +/* Copyright (c) 2010, 2012-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -10,7 +10,7 @@ /** @addtogroup SURF_plugin_energy * * - * BlaBla energy + * This is the energy plugin, enabling to account not only for computation time, but also for the dissipated energy in the simulated platform. */ XBT_LOG_EXTERNAL_CATEGORY(surf_kernel); @@ -144,7 +144,7 @@ xbt_dynar_t CpuEnergy::getWattsRangeList() if (cpu->getProperties() == NULL) return NULL; - char* all_power_values_str = (char*)xbt_dict_get_or_null(cpu->getProperties(), "power_per_state"); + char* all_power_values_str = (char*)xbt_dict_get_or_null(cpu->getProperties(), "watt_per_state"); if (all_power_values_str == NULL) return NULL; -- 2.20.1