8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / dtrace / test / tst / common / aggs / tst.stddev.normalize.d
blob50c14d3cedb0b80952681218b5a0ee6ad3f09be7
1 /*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
13 * Copyright 2017 Panzura. All rights reserved.
17 * ASSERTION:
18 * Positive test for normalization() of stddev()
20 * SECTION: Aggregations/Normalization
24 #pragma D option quiet
25 #pragma D option aggrate=1ms
26 #pragma D option switchrate=50ms
28 BEGIN
30 i = 0;
33 tick-100ms
34 /i < 11/
36 @ = stddev(i * 100);
37 i++;
40 tick-100ms
41 /i == 11/
43 printf("normalized data:\n");
44 normalize(@, 10);
45 exit(0);