diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2019-04-06 10:09:11 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2019-04-06 10:09:11 +0900 |
commit | 6e2e544813bbd2f716cf84555d6d08cbb34b29f1 (patch) | |
tree | e9ea9c35e0fe3a8e22003922cea5418d386681f0 | |
parent | 49588d7ebd7b8035170663d135ceca418ddaa986 (diff) | |
download | wf-clock-6e2e544813bbd2f716cf84555d6d08cbb34b29f1.tar.gz |
show latency in seconds, not 0.1 seconds2019-04-06
As the source isn't that accurate. The precision in 'Current time'
line is second.
-rw-r--r-- | WarframeClock/App.xaml.cs | 2 | ||||
-rw-r--r-- | WarframeClock/OverlayWindowViewModel.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/WarframeClock/App.xaml.cs b/WarframeClock/App.xaml.cs index 59b70f7..b9b4026 100644 --- a/WarframeClock/App.xaml.cs +++ b/WarframeClock/App.xaml.cs @@ -12,7 +12,7 @@ namespace WarframeClock /// </summary> public partial class App : Application { - public static readonly string VersionString = "Warframe Clock Overlay 2019-04-02"; + public static readonly string VersionString = "Warframe Clock Overlay 2019-04-06"; public static readonly string WebsiteUriString = "https://poepoe.org/warframe/clock/"; public static readonly Uri WebsiteUri = new Uri(WebsiteUriString); diff --git a/WarframeClock/OverlayWindowViewModel.cs b/WarframeClock/OverlayWindowViewModel.cs index 1786ad6..9e7d6dc 100644 --- a/WarframeClock/OverlayWindowViewModel.cs +++ b/WarframeClock/OverlayWindowViewModel.cs @@ -59,7 +59,7 @@ namespace WarframeClock diff -= bountiesLen; else if (diff < -bountiesLen / 2) diff += bountiesLen; - ret.Append($" [{Math.Abs(diff):0.0}s {(diff > 0 ? "late" : "early")}]"); + ret.Append($" [{Math.Round(Math.Abs(diff))}s {(diff > 0 ? "late" : "early")}]"); } else { |