diff options
author | sr55 <[email protected]> | 2014-08-02 15:48:55 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-08-02 15:48:55 +0000 |
commit | 969fe98fc90991e61f74720221f53bd746fbd5d4 (patch) | |
tree | de7521f75283f72ecf72350a7cd5b7de3de2907c /win/CS/HandBrakeWPF | |
parent | 6ea78897d46244337d7b857555b843451cc7aeea (diff) |
WinGui: Force 2dp on Preview %
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6257 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs index 932978e85..d965a1ee6 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PreviewViewModel.cs @@ -403,7 +403,7 @@ namespace HandBrakeWPF.ViewModels /// </param>
private void encodeService_EncodeStatusChanged(object sender, HandBrake.ApplicationServices.EventArgs.EncodeProgressEventArgs e)
{
- this.Percentage = string.Format("{0} %", e.PercentComplete.ToString(CultureInfo.InvariantCulture));
+ this.Percentage = string.Format("{0} %", Math.Round(e.PercentComplete, 2).ToString(CultureInfo.InvariantCulture));
this.PercentageValue = e.PercentComplete;
}
|