1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Adding version info to benchmark header

This commit is contained in:
Patrik J. Braun 2021-05-12 12:39:30 +02:00
parent 09230b9e55
commit 392f111cfc

View File

@ -21,6 +21,9 @@ const printHeader = async (statistic: string) => {
', ' + Utils.zeroPrefix(dt.getDate(), 2) +
'.' + Utils.zeroPrefix(dt.getMonth() + 1, 2) +
'.' + dt.getFullYear());
if (Config.Server.Environment && Config.Server.Environment.buildCommitHash) {
printLine('**Version**: v' + Config.Server.Environment.appVersion + ', built at: ' + new Date(Config.Server.Environment.buildTime) + ', git commit:' + Config.Server.Environment.buildCommitHash);
}
printLine('**System**: ' + BMConfig.system);
printLine('\n**Gallery**: ' + statistic + '\n');
};