Feat: send full version os to the server

This commit is contained in:
Laurent Clouet
2021-06-24 10:36:25 +02:00
parent 6a483e9885
commit 9a5cd74609
3 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,13 @@ public abstract class OS {
public abstract String name();
/** Get the full version of the os.
* For example windows, should give "windows 8.1"
*/
public String getVersion() {
return System.getProperty("os.name").toLowerCase();
}
public abstract CPU getCPU();
public abstract long getMemory();