diff --git a/DRAMSys/simulator/src/simulation/Dram.h b/DRAMSys/simulator/src/simulation/Dram.h index 2d201ebe..0f860701 100644 --- a/DRAMSys/simulator/src/simulation/Dram.h +++ b/DRAMSys/simulator/src/simulation/Dram.h @@ -216,8 +216,8 @@ struct Dram : sc_module double averagePower = (totalEnergy / sc_time_stamp().to_seconds()) / 1e9; // Print the final total energy and the average power for the simulation - cout << name() << string("\tTotal Energy: \t") + to_string(totalEnergy) + string("\t[pJ]") << endl; - cout << name() << string("\tAverage Power: \t") + to_string(averagePower) + string("\t[mW]") << endl; + cout << name() << string("\tTotal Energy: \t") << fixed <