osInfo() service pack version (windows)

This commit is contained in:
Sebastian Hildebrandt 2019-05-09 10:11:35 +02:00
parent 9af4e5271c
commit b8c61596ab
6 changed files with 21 additions and 2 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.2.0 | 2019-05-09 | `osInfo()` extended service pack version (windows) |
| 4.1.8 | 2019-05-09 | `graphics()` resolve on error (windows) |
| 4.1.7 | 2019-05-09 | `users()` parsing fix (windows) |
| 4.1.6 | 2019-04-24 | `memory()` swap used fix (linux) |

View File

@ -276,6 +276,7 @@ I also created a nice little command line tool called [mmon][mmon-github-url] (
| | logofile | X | X | X | X | X | e.g. 'apple', 'debian', 'fedora', ... |
| | serial | X | X | X | X | | OS/Host serial number |
| | build | X | | X | X | | OS build version |
| | servicepack | | | | X | | service pack version |
| si.uuid(cb) | {...} | X | X | X | X | X | object of several UUIDs |
| | os | X | X | X | X | | os specific UUID |
| si.versions(cb) | {...} | X | X | X | X | X | version information (kernel, ssl, node, ...) |

View File

@ -80,6 +80,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.2.0</th>
<td>2019-05-09</td>
<td><span class="code">osInfo()</span> extended service pack version (windows)</td>
</tr>
<tr>
<th scope="row">4.1.8</th>
<td>2019-05-09</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span></div>
<div class="version">Current Version: <span id="version">4.1.8</span></div>
<div class="version">Current Version: <span id="version">4.2.0</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">

View File

@ -185,6 +185,16 @@
<td></td>
<td>OS build version</td>
</tr>
<tr>
<td></td>
<td>servicepack</td>
<td></td>
<td></td>
<td></td>
<td>X</td>
<td></td>
<td>service pack version</td>
</tr>
<tr>
<td>si.uuid(cb)</td>
<td>{...}</td>

View File

@ -175,7 +175,8 @@ function osInfo(callback) {
codepage: '',
logofile: '',
serial: '',
build: ''
build: '',
servicepack: ''
};
if (_linux) {
@ -286,6 +287,7 @@ function osInfo(callback) {
result.distro = util.getValue(lines, 'Caption', '=').trim();
result.serial = util.getValue(lines, 'SerialNumber', '=').trim();
result.build = util.getValue(lines, 'BuildNumber', '=').trim();
result.servicepack = util.getValue(lines, 'ServicePackMajorVersion', '=').trim() + '.' + util.getValue(lines, 'ServicePackMinorVersion', '=').trim();
result.codepage = util.getCodepage();
if (callback) {
callback(result);