From 8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 5 Jun 2021 19:27:48 +0200 Subject: Presque sortie du jeu --- views/script/credits_technical.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 views/script/credits_technical.js (limited to 'views/script/credits_technical.js') diff --git a/views/script/credits_technical.js b/views/script/credits_technical.js new file mode 100644 index 0000000..8193167 --- /dev/null +++ b/views/script/credits_technical.js @@ -0,0 +1,9 @@ +document.write("Kartik"+require('@electron/remote').getCurrentWindow().channel + " (" + require('../package.json').name + ") " +require('../package.json').version); +document.write(" on " + require('os').type() + " (" + require('os').version() + ", " + require('os').arch() +") version " + require('os').release() + "
") +cores = require('os').cpus() +if (cores.length > 1) { + document.write(cores.length + " processors
"); +} else { + document.write(cores.length + " processor
"); +} +document.write(((process.memoryUsage().heapUsed/1024)/1024).toFixed(2) + " MB heap memory used, " + ((process.memoryUsage().heapTotal/1024)/1024).toFixed(2) + " MB heap memory total, " + ((process.memoryUsage().rss/1024)/1024).toFixed(2) + " MB virtual memory"); \ No newline at end of file -- cgit