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:
parent
09230b9e55
commit
392f111cfc
@ -21,6 +21,9 @@ const printHeader = async (statistic: string) => {
|
|||||||
', ' + Utils.zeroPrefix(dt.getDate(), 2) +
|
', ' + Utils.zeroPrefix(dt.getDate(), 2) +
|
||||||
'.' + Utils.zeroPrefix(dt.getMonth() + 1, 2) +
|
'.' + Utils.zeroPrefix(dt.getMonth() + 1, 2) +
|
||||||
'.' + dt.getFullYear());
|
'.' + 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('**System**: ' + BMConfig.system);
|
||||||
printLine('\n**Gallery**: ' + statistic + '\n');
|
printLine('\n**Gallery**: ' + statistic + '\n');
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user