diff --git a/src/Hrimsoft.SqlBulk.PostgreSql/Services/NpgsqlCommandsBulkService.cs b/src/Hrimsoft.SqlBulk.PostgreSql/Services/NpgsqlCommandsBulkService.cs index ad08d62..40a60f9 100644 --- a/src/Hrimsoft.SqlBulk.PostgreSql/Services/NpgsqlCommandsBulkService.cs +++ b/src/Hrimsoft.SqlBulk.PostgreSql/Services/NpgsqlCommandsBulkService.cs @@ -160,7 +160,7 @@ public async Task> ExecuteOperationAsync( result?.Operated.AddRange(elements); if (sw != null) { var (size, suffix) = totalSqlSize.PrettifySize(); - _logger.LogInformation($"{operation}ed {elements.Count} {entityProfile.EntityType.Name} elements, {totalSqlCommandCount} sql commands ({size}{suffix}) in total {sw.ElapsedMilliseconds / 1000f:0.000} s"); + _logger.LogInformation($"{operation}ed {elements.Count} {entityProfile.EntityType.Name} elements, {totalSqlCommandCount} sql commands ({size:0.00}{suffix}) in total {sw.ElapsedMilliseconds / 1000f:0.000} s"); } } catch (Exception ex) { @@ -237,7 +237,7 @@ await ProcessFailureAsync(operation, await transaction.CommitAsync(cancellationToken); if (sw != null) { var (size, suffix) = totalSqlSize.PrettifySize(); - _logger.LogInformation($"{operation}ed {elements.Count} {entityProfile.EntityType.Name} elements in {iterations} steps, {totalSqlCommandCount} sql commands ({size}{suffix}) in total {sw.ElapsedMilliseconds / 1000f:0.000} s"); + _logger.LogInformation($"{operation}ed {elements.Count} {entityProfile.EntityType.Name} elements in {iterations} steps, {totalSqlCommandCount} sql commands ({size:0.00}{suffix}) in total {sw.ElapsedMilliseconds / 1000f:0.000} s"); } } return result;