private static long? GetSpeed(string name)
{
try
{
string path = Path.Combine(NetworkFiles.SysClassNetFolder, name, NetworkFiles.SpeedFileName);
return StringParsingHelpers.ParseRawLongFile(path);
}
catch (Exception) // Ignore any problems accessing or parsing the file.
{
return null;
}
}