From a97f644dd84dd8e567456470bb9b6b788feb9726 Mon Sep 17 00:00:00 2001 From: Jerry Marino Date: Fri, 6 Dec 2019 10:36:32 -0800 Subject: [PATCH] Progress for Bazel builds 1000+ actions (#16) This adds the ability to convert from 1,000 actions to 1000 --- Examples/BazelBuildService/ProgressView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/BazelBuildService/ProgressView.swift b/Examples/BazelBuildService/ProgressView.swift index a442e9e..bca7c42 100644 --- a/Examples/BazelBuildService/ProgressView.swift +++ b/Examples/BazelBuildService/ProgressView.swift @@ -97,8 +97,8 @@ struct ProgressView { } } if numberStrings.count == 2 { - ranActions = Int32(numberStrings[0]) ?? 0 - totalActions = Int32(numberStrings[1]) ?? 0 + ranActions = Int32(numberStrings[0].replacingOccurrences(of: ",", with: "")) ?? 0 + totalActions = Int32(numberStrings[1].replacingOccurrences(of: ",", with: "")) ?? 0 } }