From 233325e70df20cf17d782b056b818091bd247356 Mon Sep 17 00:00:00 2001 From: Haojian Zhuang Date: Tue, 27 Nov 2018 10:56:12 +0800 Subject: [PATCH] doc/workload: fix double variable in sleep conf "mean" and "std" property is configured as double type. But if it's configured as 3000 or 3000.0, it could only be recognized as int type. Now use 3000.001 to force it as double type. Signed-off-by: Haojian Zhuang --- docs/_workloads/sleep.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/_workloads/sleep.md b/docs/_workloads/sleep.md index 23e50109..677707ff 100644 --- a/docs/_workloads/sleep.md +++ b/docs/_workloads/sleep.md @@ -50,19 +50,19 @@ _To Draw From A Distribution_ } ``` ```hocon -// Sleep the thread for a number of milliseconds chosen from a Poisson distribution with a mean of 30000 +// Sleep the thread for a number of milliseconds chosen from a Poisson distribution with a mean of 30000.001 { name = "sleep" distribution = "poisson" - mean = 30000 + mean = 30000.001 } ``` ```hocon -// Sleep the thread for a number of milliseconds chosen from a gaussian distribution with a mean of 30000 and standard deviation of 1000 +// Sleep the thread for a number of milliseconds chosen from a gaussian distribution with a mean of 30000.001 and standard deviation of 1000.001 { name = "sleep" distribution = "gaussian" - mean = 30000 - std = 1000 + mean = 30000.001 + std = 1000.001 } -``` \ No newline at end of file +```