diff --git a/decor/decorators.go b/decor/decorators.go index 4099d3d..a29deaa 100644 --- a/decor/decorators.go +++ b/decor/decorators.go @@ -85,6 +85,11 @@ } } +// CountersNoUnit returns raw counters decorator +func CountersNoUnit(pairFormat string, minWidth int, conf byte) DecoratorFunc { + return Counters(pairFormat, 0, minWidth, conf) +} + // Counters provides basic counters decorator. // pairFormat must contain two printf compatible verbs, like "%f" or "%d". // First verb substituted with Current, second one with Total. For example (assuming decor.Unit_KiB used):