mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-03 12:16:27 -04:00
Merge branch 'Development' into StressTest
This commit is contained in:
commit
fad23c4f54
1 changed files with 6 additions and 0 deletions
|
@ -87,12 +87,18 @@ public class OsData {
|
|||
throw new RuntimeException("Uname returned error code " + exit);
|
||||
}
|
||||
|
||||
System.out.println("INFO: uname -m call results in:" + unameOutput);
|
||||
|
||||
if (unameOutput.matches("i.86")) {
|
||||
return OsType.Linux32;
|
||||
}
|
||||
if (unameOutput.compareTo("x86_64") == 0) {
|
||||
return OsType.Linux64;
|
||||
}
|
||||
|
||||
if (unameOutput.contains("arm"))
|
||||
return unameOutput.contains("64") ? OsType.Linux64 : OsType.Linux32;
|
||||
|
||||
throw new RuntimeException("Could not understand uname output, not sure what bitness");
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Uname failure", e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue