aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-07-08 10:19:53 +0200
committerThomas White <taw@physics.org>2015-07-08 10:23:10 +0200
commit31b653d3920fb952a926447afce5fd3b76d9d5ee (patch)
tree9e880cc714089459ba31591f37f35e3a09eeb87e /src
parent0bcfe3cdf917ae53764c423c7af865352af47920 (diff)
pattern_sim: Fix displayed pulse energy
Diffstat (limited to 'src')
-rw-r--r--src/pattern_sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index e37fd936..f9d8126d 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -663,7 +663,7 @@ int main(int argc, char *argv[])
STATUS(" Photon energy: %.2f eV (wavelength %.5f A)\n",
photon_energy, image.lambda*1e10);
STATUS(" Number of photons: %.0f (%.2f mJ)\n", nphotons,
- eV_to_J(photon_energy)*1e3);
+ eV_to_J(photon_energy)*nphotons*1e3);
STATUS(" Beam divergence: not simulated\n");
STATUS(" Beam radius: %.2f microns\n",
beam_radius*1e6);