mirror of
https://github.com/eclipse/paho.mqtt.cpp.git
synced 2025-05-09 11:21:24 +08:00
Minor comments in async_publish_time sample.
This commit is contained in:
parent
6e87712bf4
commit
b9e92b2b93
@ -84,7 +84,10 @@ uint64_t timestamp()
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// The server URI (address)
|
||||
string address = (argc > 1) ? string(argv[1]) : DFLT_SERVER_ADDRESS;
|
||||
|
||||
// The amount of time to run (in ms). Zero means "run forever".
|
||||
uint64_t trun = (argc > 2) ? stoll(argv[2]) : 0LL;
|
||||
|
||||
cout << "Initializing for server '" << address << "'..." << endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user