nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 01448c7f44bf38a3b2a39d2888721ac8b232d6a1
parent 688f7c449ce1b9dbb49580100817108c49434775
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon,  3 Feb 2020 23:26:28 -0500

nserver/src/protocol.c: ssample_parent -> sssample_parent.

* nserver/src/protocol.c (ssample_parent): Rename to...
(sssample_parent): ...this.
(sssample): Update function.

Diffstat:
nserver/src/protocol.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nserver/src/protocol.c b/nserver/src/protocol.c @@ -74,7 +74,7 @@ int ssdelete(char *key) return -1; } -int ssample_parent(char *key, double s) +int sssample_parent(char *key, double s) { check(key != NULL || strlen(key) < 1, "key invalid"); check(tst != NULL, "tstree not initialized"); @@ -111,7 +111,7 @@ double sssample(char *key, double s) Stats_sample(rec->st, s); // 3. Sample parent! - int rc = ssample_parent(key, s); + int rc = sssample_parent(key, s); check(rc >= 0, "sampling parent failed"); // 4. Get mean.