From 90e31230ace9ba6538a627f70e51b1d943afdf48 Mon Sep 17 00:00:00 2001 From: Jeff Wang Date: Thu, 22 Mar 2018 16:25:40 -0700 Subject: [PATCH] correctly return the total_records (#331) --- visualdl/logic/sdk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visualdl/logic/sdk.h b/visualdl/logic/sdk.h index 83ed4785..f66db9ac 100644 --- a/visualdl/logic/sdk.h +++ b/visualdl/logic/sdk.h @@ -126,7 +126,7 @@ struct ScalarReader { std::vector ids() const; std::vector timestamps() const; std::string caption() const; - size_t total_records() const { return reader_.total_records() - 1; } + size_t total_records() const { return reader_.total_records(); } size_t size() const; private: -- GitLab