Skip to content

Commit

Permalink
Fix #46 Remove Kernel Regex
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncaron authored and ayufan committed Feb 5, 2024
1 parent 4ef6681 commit ede27ac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions versions/v3.1.2/server/proxmox-backup~fix-kernel-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/www/panel/NodeInfo.js b/www/panel/NodeInfo.js
index 72f97c7c..b8b2c4cc 100644
--- a/www/panel/NodeInfo.js
+++ b/www/panel/NodeInfo.js
@@ -151,7 +151,7 @@ Ext.define('PBS.NodeInfoPanel', {
return data.kversion;
}
let kernel = data['current-kernel'];
- let buildDate = kernel.version.match(/\((.+)\)\s*$/)[1] ?? 'unknown';
+ let buildDate = kernel.version;
return `${kernel.sysname} ${kernel.release} (${buildDate})`;
},
value: '',

0 comments on commit ede27ac

Please sign in to comment.