diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-27 15:17:45 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-27 15:17:45 +0000 |
| commit | 619389ffd6b562349a3f42f6ceadbdcb0ea0b915 (patch) | |
| tree | d30dfbb32796066bf7218616c51621b2ccb05cce /src | |
| parent | 58723875416b5d285426b6355792f4607d00804c (diff) | |
Fix erroneous disk space reports (#93).
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/properties_dialog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/properties_dialog.cc b/src/wx/properties_dialog.cc index 02f848c01..44a713dc3 100644 --- a/src/wx/properties_dialog.cc +++ b/src/wx/properties_dialog.cc @@ -54,7 +54,7 @@ PropertiesDialog::PropertiesDialog (wxWindow* parent, shared_ptr<Film> film) _frames->SetLabel (std_to_wx (lexical_cast<string> (_film->length().get()))); FrameRateConversion frc (_film->source_frame_rate(), _film->dcp_frame_rate()); int const dcp_length = _film->length().get() * frc.factor(); - double const disk = ((double) _film->j2k_bandwidth() / 8) * dcp_length / (_film->dcp_frame_rate() * 1073741824); + double const disk = ((double) _film->j2k_bandwidth() / 8) * dcp_length / (_film->dcp_frame_rate() * 1073741824.0f); stringstream s; s << fixed << setprecision (1) << disk << wx_to_std (_("Gb")); _disk->SetLabel (std_to_wx (s.str ())); |
