static void DisplayInventoryInfo(RpsStats rpsStats) { Console.Clear(); Console.WriteLine($"Errors: {errors}"); Console.WriteLine($"Connected to: {connectionString}"); Console.WriteLine($"TagIds={rpsStats.TagIds}, RPS={rpsStats.RPS}"); foreach (var h in rpsStats.Histogram) { Console.Write("{0,6:F1}", h); } Console.WriteLine($" Avg={rpsStats.Average:F1}"); foreach (var h in rpsStats.AggTags) { Console.WriteLine($"{h.TagId} {h.ReadCount}"); } }
static void DisplayInventoryInfo(DemoArgs demoArgs, RpsStats rpsStats, int inventoryPs, Triple inventoryDuration, Triple processingDuration) { Console.Clear(); Console.WriteLine($"Connected to: {connectionString}, {demoArgs.Inventory} mode, update {updateNumber++}"); Console.WriteLine($"Reader Temp={temperatureSubject.Value}, Limit={demoArgs.ThermalLimit}"); Console.WriteLine($"TagIds={rpsStats.TagIds}, RPS={rpsStats.RPS}, InventoryPS={inventoryPs}"); Console.WriteLine($"Inventory duration: {inventoryDuration}"); Console.WriteLine($"Processing duration: {processingDuration}"); foreach (var h in rpsStats.Histogram) { Console.Write("{0,6:F1}", h); } Console.WriteLine($" Avg={rpsStats.Average:F1}"); foreach (var h in rpsStats.AggTags .Where(x => string.IsNullOrWhiteSpace(demoArgs.TagIdFilter) || Regex.IsMatch(x.TagId, demoArgs.TagIdFilter))) { Console.WriteLine($"{h.TagId} {h.ReadCount}"); } }