Skip to content

Commit

Permalink
Add code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Nov 15, 2023
1 parent 35d8f27 commit d17fbb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Elastic.Apm/Metrics/Linux/GlobalMemoryStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ internal static (long totalMemory, long availableMemory) GetTotalAndAvailableSys

try
{
// We read from the file into our rented buffer so that we can parse data from the meminfo file.
// Specifically, we try to parse the values for `MemAvailable` and `MemTotal`. When these values
// use the KB unit, we multiply them to return bytes.

var read = fs.Read(buffer);

if (read == 0)
Expand Down

0 comments on commit d17fbb1

Please sign in to comment.