From dfd7bfcfa35901ff9a6d4fc70ea61f72dadda3af Mon Sep 17 00:00:00 2001 From: Jamie Alquiza Date: Mon, 3 Jul 2023 13:41:51 -0400 Subject: [PATCH] updated examples --- examples/bicache-example/main.go | 4 ++-- examples/bicache-loadtest/main.go | 4 ++-- sll/examples/sll-example/main.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/bicache-example/main.go b/examples/bicache-example/main.go index 7264ef9..bd842b7 100644 --- a/examples/bicache-example/main.go +++ b/examples/bicache-example/main.go @@ -34,7 +34,7 @@ func main() { c.Set(key, []byte{0}) t.AddTime(time.Since(start)) } - t.Calc().Dump() + fmt.Println(t.Calc()) fmt.Println() @@ -47,7 +47,7 @@ func main() { t.AddTime(time.Since(start)) } - t.Calc().Dump() + fmt.Println(t.Calc()) stats := c.Stats() j, _ := json.Marshal(stats) diff --git a/examples/bicache-loadtest/main.go b/examples/bicache-loadtest/main.go index f13771a..97569fc 100644 --- a/examples/bicache-loadtest/main.go +++ b/examples/bicache-loadtest/main.go @@ -44,10 +44,10 @@ func main() { for range ticker.C { fmt.Printf("\n> Writes:\n") - writeT.Calc().Dump() + fmt.Println(writeT.Calc()) fmt.Printf("\n> Reads:\n") - readT.Calc().Dump() + fmt.Println(writeT.Calc()) stats := c.Stats() j, _ := json.Marshal(stats) diff --git a/sll/examples/sll-example/main.go b/sll/examples/sll-example/main.go index e2479e9..450ba6e 100644 --- a/sll/examples/sll-example/main.go +++ b/sll/examples/sll-example/main.go @@ -1,6 +1,6 @@ // The MIT License (MIT) // -// Copyright (c) 2016 Jamie Alquiza +// # Copyright (c) 2016 Jamie Alquiza // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal