summaryrefslogtreecommitdiffstats
path: root/adapter/statsclient/statseg_v2.go
diff options
context:
space:
mode:
authorVladimir Lavor <vlavor@cisco.com>2021-03-11 15:27:02 +0100
committerOndrej Fabry <ofabry@cisco.com>2021-04-20 16:51:29 +0000
commitd0b973030fe07dc7875da72f5ebe42d8bd9544b1 (patch)
tree665b9b3072c485ff2e472ff88d18660efcecbbd8 /adapter/statsclient/statseg_v2.go
parent1d574a786662498896d0e5e089f3c312910e0ffa (diff)
Recognize stat_dir_type_empty
Do not to handle empty stats directory as unknown. Empty dir's value is always treated as zero. Change-Id: I40a3829675c5b7c9da80ceaa7e2d0a87fe02dc7c Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Diffstat (limited to 'adapter/statsclient/statseg_v2.go')
-rw-r--r--adapter/statsclient/statseg_v2.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/adapter/statsclient/statseg_v2.go b/adapter/statsclient/statseg_v2.go
index 68411f9..08467c1 100644
--- a/adapter/statsclient/statseg_v2.go
+++ b/adapter/statsclient/statseg_v2.go
@@ -202,6 +202,7 @@ func (ss *statSegmentV2) CopyEntryData(statSegDir unsafe.Pointer) adapter.Stat {
return adapter.NameStat(data)
case statDirEmpty:
+ return adapter.EmptyStat("<none>")
// no-op
default: