You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/12/09 22:30:02 UTC
incubator-mynewt-newt git commit: newtmgr;
print out low water mark with mempools.
Repository: incubator-mynewt-newt
Updated Branches:
refs/heads/develop 81d7347e8 -> 093d24945
newtmgr; print out low water mark with mempools.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/093d2494
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/093d2494
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/093d2494
Branch: refs/heads/develop
Commit: 093d2494547adea222cfe56b05228eb4b732ba39
Parents: 81d7347
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Dec 9 14:29:20 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Dec 9 14:29:20 2016 -0800
----------------------------------------------------------------------
newtmgr/cli/mpstats.go | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/093d2494/newtmgr/cli/mpstats.go
----------------------------------------------------------------------
diff --git a/newtmgr/cli/mpstats.go b/newtmgr/cli/mpstats.go
index 86b157b..3789dc4 100644
--- a/newtmgr/cli/mpstats.go
+++ b/newtmgr/cli/mpstats.go
@@ -60,13 +60,14 @@ func mempoolStatsRunCmd(cmd *cobra.Command, args []string) {
fmt.Printf("Return Code = %d\n", msrsp.ReturnCode)
if msrsp.ReturnCode == 0 {
+ fmt.Printf("%32s %5s %4s %4s %4s\n", "name", "blksz",
+ "cnt", "free", "min")
for k, info := range msrsp.MPools {
- fmt.Printf(" %s ", k)
- fmt.Printf("(blksize=%d nblocks=%d nfree=%d)",
+ fmt.Printf("%32s %5d %4d %4d %4d\n", k,
int(info["blksiz"].(uint64)),
int(info["nblks"].(uint64)),
- int(info["nfree"].(uint64)))
- fmt.Printf("\n")
+ int(info["nfree"].(uint64)),
+ int(info["min"].(uint64)))
}
}
}