Save flag in variable

This commit is contained in:
斟酌 鵬兄 2015-08-25 18:09:36 +08:00
parent b95fa5505c
commit 0fcbbea2fa

View File

@ -52,7 +52,8 @@ function Dragonfly( logHandler )
}
var cluster = require("cluster");
this.ptag = "[ " + ( cluster.isMaster ? "M" : "S" ) + ":" + process.pid + " ] ";
var tag = cluster.isMaster ? "M" : "S";
this.ptag = "[ " + tag + ":" + process.pid + " ] ";
this.Info( "Dragonfly ready.", Dragonfly.Visibility.VISIBLE );
}