diff --git a/scripts/server-bench.py b/scripts/server-bench.py index f0984026c..dca157302 100755 --- a/scripts/server-bench.py +++ b/scripts/server-bench.py @@ -264,7 +264,7 @@ def benchmark( bin_max = np.ceil(token_t_last) + 1 plt.figure() - plt.hist(token_t, np.linspace(0, bin_max, bin_max, endpoint=False).tolist()) + plt.hist(token_t, np.linspace(0, bin_max, int(bin_max), endpoint=False).tolist()) plt.xlim(0, bin_max + 1) plt.title(name or "") plt.xlabel("Time [s]")