Skip to content

Commit

Permalink
Change log file names to use toISOString() rather than millis
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjlee committed Jul 29, 2011
1 parent d4893f8 commit d0a7b4e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Compatible with node v0.4.x
Features:

* Add graphJmx() and graphProcess(); deprecate spawnAndMonitor(). These provide an easy way to graph JMX attributes as well as output from external processes, such as iostat.
* More readable date strings are used in log files names
* rps is a separate stat from result codes
* Test Results page timestamp does not auto-update on open
* X-axes now use real timestamps rather than minutes since test start
Expand Down
2 changes: 1 addition & 1 deletion lib/monitoring/statslogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var LogFile = require('../stats').LogFile;

/** StatsLogger writes interval stats from a Monitor or MonitorGroup to disk each time it emits 'update' */
var StatsLogger = exports.StatsLogger = function StatsLogger(monitor, logNameOrObject) {
this.logNameOrObject = logNameOrObject || ('results-' + START.getTime() + '-stats.log');
this.logNameOrObject = logNameOrObject || ('results-' + START.toISOString() + '-stats.log');
this.monitor = monitor;
this.logger_ = this.log_.bind(this);
};
Expand Down
2 changes: 1 addition & 1 deletion lib/reporting/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Chart.prototype = {

var ReportGroup = exports.ReportGroup = function() {
this.reports = [];
this.logNameOrObject = 'results-' + START.getTime() + '.html';
this.logNameOrObject = 'results-' + START.toISOString() + '.html';
};
ReportGroup.prototype = {
addReport: function(report) {
Expand Down
4 changes: 2 additions & 2 deletions nodeload.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d0a7b4e

Please sign in to comment.