@@ -14,16 +14,16 @@ class NodeStatus : public Status
1414 CallbackObserver<NodeStatus, const NodeStatus *> statusObserver =
1515 CallbackObserver<NodeStatus, const NodeStatus *>(this , &NodeStatus::updateStatus);
1616
17- uint8_t numOnline = 0 ;
18- uint8_t numTotal = 0 ;
17+ uint16_t numOnline = 0 ;
18+ uint16_t numTotal = 0 ;
1919
20- uint8_t lastNumTotal = 0 ;
20+ uint16_t lastNumTotal = 0 ;
2121
2222 public:
2323 bool forceUpdate = false ;
2424
2525 NodeStatus () { statusType = STATUS_TYPE_NODE; }
26- NodeStatus (uint8_t numOnline, uint8_t numTotal, bool forceUpdate = false ) : Status()
26+ NodeStatus (uint16_t numOnline, uint16_t numTotal, bool forceUpdate = false ) : Status()
2727 {
2828 this ->forceUpdate = forceUpdate;
2929 this ->numOnline = numOnline;
@@ -34,11 +34,11 @@ class NodeStatus : public Status
3434
3535 void observe (Observable<const NodeStatus *> *source) { statusObserver.observe (source); }
3636
37- uint8_t getNumOnline () const { return numOnline; }
37+ uint16_t getNumOnline () const { return numOnline; }
3838
39- uint8_t getNumTotal () const { return numTotal; }
39+ uint16_t getNumTotal () const { return numTotal; }
4040
41- uint8_t getLastNumTotal () const { return lastNumTotal; }
41+ uint16_t getLastNumTotal () const { return lastNumTotal; }
4242
4343 bool matches (const NodeStatus *newStatus) const
4444 {
@@ -56,7 +56,7 @@ class NodeStatus : public Status
5656 numTotal = newStatus->getNumTotal ();
5757 }
5858 if (isDirty || newStatus->forceUpdate ) {
59- LOG_DEBUG (" Node status update: %d online, %d total" , numOnline, numTotal);
59+ LOG_DEBUG (" Node status update: %u online, %u total" , numOnline, numTotal);
6060 onNewStatus.notifyObservers (this );
6161 }
6262 return 0 ;
0 commit comments