summaryrefslogtreecommitdiffstats
path: root/nserver/src/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'nserver/src/protocol.c')
-rw-r--r--nserver/src/protocol.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nserver/src/protocol.c b/nserver/src/protocol.c
index 213179a..733611b 100644
--- a/nserver/src/protocol.c
+++ b/nserver/src/protocol.c
@@ -110,7 +110,11 @@ double sssample(char *key, double s)
// 2. Sample!
Stats_sample(rec->st, s);
- // 3. Get mean.
+ // 3. Sample parent!
+ int rc = ssample_parent(key, s);
+ check(rc >= 0, "sampling parent failed");
+
+ // 4. Get mean.
double m = Stats_mean(rec->st);
return m;