fix qps reporting in C# stress client

pull/6545/head
Jan Tattermusch 9 years ago
parent f624a796e7
commit d151dcb12c
  1. 2
      src/csharp/Grpc.IntegrationTesting/StressTestClient.cs

@ -311,7 +311,7 @@ namespace Grpc.IntegrationTesting
var snapshot = histogram.GetSnapshot(true); var snapshot = histogram.GetSnapshot(true);
var elapsedSnapshot = wallClockStopwatch.GetElapsedSnapshot(true); var elapsedSnapshot = wallClockStopwatch.GetElapsedSnapshot(true);
return (long) (snapshot.Count / elapsedSnapshot.Seconds); return (long) (snapshot.Count / elapsedSnapshot.TotalSeconds);
} }
} }
} }

Loading…
Cancel
Save