Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetDriveStats (0.14 sec)

  1. internal/disk/stat_linux.go

    					rot := qst.Rotational == 1 // Rotational is '1' if the device is HDD
    					info.Rotational = &rot
    				}
    			}
    		}
    	}
    
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return readDriveStats(fmt.Sprintf("/sys/dev/block/%v:%v/stat", major, minor))
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top