Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Oct 31, 2011
1 parent 0499f24 commit 3abc099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carbon_client.js
Expand Up @@ -38,7 +38,7 @@ CarbonClient.createClient = function(dsn) {
};

CarbonClient.prototype.write = function(path, value, timestamp, cb) {
if (arguments.length === 3) {
if (typeof timestamp === 'function') {
cb = timestamp;
timestamp = Date.now();
}
Expand Down

0 comments on commit 3abc099

Please sign in to comment.