fix: null cpuid causing crash

This commit is contained in:
minjaesong
2023-09-14 01:58:07 +09:00
parent 61162587ee
commit 6772daaf37
2 changed files with 3 additions and 3 deletions

View File

@@ -339,8 +339,8 @@ public class App implements ApplicationListener {
sc = System.nanoTime();
}
bogoflops = Math.round((double)(bogoflops) * (1000000000.0 / (sc - st)));
System.out.println(sc - st);
System.out.println(bogoflops);
// System.out.println(sc - st);
// System.out.println(bogoflops);
// if -ea flag is set, turn on all the debug prints
try {

View File

@@ -71,7 +71,7 @@ class UISystemInfo(val remoCon: UIRemoCon) : UICanvas() {
v.add("OS" to "${App.OSName} ${App.OSVersion}")
v.add("Processor" to App.processor)
v.add("Architecture" to App.systemArch)
v.add("CPUID" to App.processorVendor.let { if (it == "null") "n/a" else it })
v.add("CPUID" to App.processorVendor.let { if (it == "null" || it == null) "n/a" else it })
v.add("OpenGL" to "${Gdx.graphics.glVersion.majorVersion}.${Gdx.graphics.glVersion.minorVersion}.${Gdx.graphics.glVersion.releaseVersion}")
v.add("GL Vendor" to Gdx.graphics.glVersion.vendorString)
v.add("GL Renderer" to Gdx.graphics.glVersion.rendererString)