Skip to content

Commit

Permalink
Add a reference to the Linux kernel's documentation for block stat.
Browse files Browse the repository at this point in the history
Signed-off-by: W. Andrew Denton <git@flying-snail.net>
  • Loading branch information
W. Andrew Denton authored and discordianfish committed Mar 22, 2022
1 parent 84ce3a0 commit 402a009
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collector/diskstats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import (
const (
secondsPerTick = 1.0 / 1000.0

// Read sectors and write sectors are the "standard UNIX 512-byte sectors, not any device- or filesystem-specific block size.
// Read sectors and write sectors are the "standard UNIX 512-byte sectors, not any device- or filesystem-specific block size."
// See also https://www.kernel.org/doc/Documentation/block/stat.txt
unixSectorSize = 512.0
)

Expand Down

0 comments on commit 402a009

Please sign in to comment.