Commit e88e6a63 authored by antirez's avatar antirez
Browse files

Cluster: use long long for timestamps in clusterGenNodesDescription().

Ping sent and pong received fields need to be casted to long long to be
printed correctly into 32 bit systems.
parent 2dfc5e35
...@@ -2404,9 +2404,9 @@ sds clusterGenNodesDescription(int filter) { ...@@ -2404,9 +2404,9 @@ sds clusterGenNodesDescription(int filter) {
ci = sdscatprintf(ci,"- "); ci = sdscatprintf(ci,"- ");
/* Latency from the POV of this node, link status */ /* Latency from the POV of this node, link status */
ci = sdscatprintf(ci,"%ld %ld %llu %s", ci = sdscatprintf(ci,"%lld %lld %llu %s",
(long) node->ping_sent, (long long) node->ping_sent,
(long) node->pong_received, (long long) node->pong_received,
(unsigned long long) node->configEpoch, (unsigned long long) node->configEpoch,
(node->link || node->flags & REDIS_NODE_MYSELF) ? (node->link || node->flags & REDIS_NODE_MYSELF) ?
"connected" : "disconnected"); "connected" : "disconnected");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment