From 5cd87a623edbd42b8ae1b07ddd965f1f4f450aa7 Mon Sep 17 00:00:00 2001 From: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com> Date: Thu, 7 Jul 2022 18:37:58 +0100 Subject: [PATCH] Wrong function in docs (#4180) sum() function has an incorrect example. Pointed out by community user : https://community.influxdata.com/t/sum-function-documentation/25631 --- content/flux/v0.x/stdlib/universe/sum.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/content/flux/v0.x/stdlib/universe/sum.md b/content/flux/v0.x/stdlib/universe/sum.md index f4faca634..4b6018bb9 100644 --- a/content/flux/v0.x/stdlib/universe/sum.md +++ b/content/flux/v0.x/stdlib/universe/sum.md @@ -63,7 +63,7 @@ Input data. Default is piped-forward data (`<-`). import "sampledata" sampledata.int() - |> stddev() + |> sum() ``` @@ -93,13 +93,14 @@ sampledata.int() #### Output data -| *tag | _value | -| ---- | ----------------- | -| t1 | 7.063993204979744 | +| *tag | _value | +| ---- | ------- | +| t1 | 51 | + +| *tag | _value | +| ---- | ------- | +| t2 | 53 | -| *tag | _value | -| ---- | ----------------- | -| t2 | 9.474527252938094 | {{% /expand %}} {{< /expand-wrapper >}}