Skip to content

Commit 3d433ac

Browse files
committed
ull to uint64_t static cast
1 parent 30a8296 commit 3d433ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ProcessMonitor.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ std::vector<Metric> ProcessMonitor::getNetworkUsage()
3939
auto position = line.find(":");
4040
auto secondPosition = line.find(":", position + 1);
4141
metrics.emplace_back(Metric{
42-
std::stoull(line.substr(position + 1, secondPosition - position - 1)),
42+
static_cast<uint64_t>(std::stoull(line.substr(position + 1, secondPosition - position - 1))),
4343
"bytesReceived"}.addTags({{"if", line.substr(0, position)}})
4444
);
4545
metrics.emplace_back(Metric{
46-
std::stoull(line.substr(secondPosition + 1, line.size())),
46+
static_cast<uint64_t>(std::stoull(line.substr(secondPosition + 1, line.size()))),
4747
"bytesTransmitted"}.addTags({{"if", line.substr(0, position)}})
4848
);
4949
}

0 commit comments

Comments
 (0)