mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidy up Resource::Manager APIs
This commit is contained in:
@@ -81,7 +81,7 @@ public:
|
||||
{
|
||||
IPAddress address (IPAddress::from_string ("207.127.82.1"));
|
||||
Consumer c (logic.newInboundEndpoint (address));
|
||||
logMessage ("Charging " + c.label() + " 10,000 units");
|
||||
logMessage ("Charging " + c.to_string() + " 10,000 units");
|
||||
c.charge (10000);
|
||||
for (int i = 0; i < 128; ++i)
|
||||
{
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
{
|
||||
IPAddress address (IPAddress::from_string ("207.127.82.2"));
|
||||
Consumer c (logic.newInboundEndpoint (address));
|
||||
logMessage ("Charging " + c.label() + " 1000 units per second");
|
||||
logMessage ("Charging " + c.to_string() + " 1000 units per second");
|
||||
for (int i = 0; i < 128; ++i)
|
||||
{
|
||||
c.charge (1000);
|
||||
|
||||
Reference in New Issue
Block a user