]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: used fixed size int for perf counter prio
authorJohn Spray <john.spray@redhat.com>
Fri, 1 Sep 2017 16:01:35 +0000 (12:01 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 27 Sep 2017 18:20:20 +0000 (14:20 -0400)
...to avoid any ambiguity in allowed range and
make clear how to encode it down the wire.

Signed-off-by: John Spray <john.spray@redhat.com>
src/common/perf_counters.h

index 507d09102de419cf9322800a71e6350986915172..ec81de4f3595f6839c6b83de726f328444998fd8 100644 (file)
@@ -96,7 +96,7 @@ public:
     const char *name;
     const char *description;
     const char *nick;
-    int prio = 0;
+    uint8_t prio = 0;
     enum perfcounter_type_d type;
     std::atomic<uint64_t> u64 = { 0 };
     std::atomic<uint64_t> avgcount = { 0 };