Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

remove moment #631

Closed
wants to merge 1 commit into from
Closed

remove moment #631

wants to merge 1 commit into from

Conversation

eljefedelrodeodeljefe
Copy link

Very tiny nit: I came by this line and thought it might be a little overkill. Removing moment from this one single line has a 2mb node_moulues decrease when installed without production flag.

@mcollina
Copy link
Collaborator

CI is failing :/.

@mcollina
Copy link
Collaborator

mcollina commented May 2, 2017

@eljefedelrodeodeljefe ping!

@@ -179,7 +176,7 @@ Stats.prototype.wire = function wire(server) {

doPublish("version", version);
doPublish("started_at", server.stats.started.toISOString());
doPublish("uptime", mom.from(Date.now(), true));
doPublish("uptime", Math.ceil((Date.now() - this.started) / 1000) + ' seconds');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcollina I think we just need to replace this with server.stats to pass the failing test.

@mcollina
Copy link
Collaborator

@jyotman would you like to send an updated PR, and take over from @eljefedelrodeodeljefe ?

@jyotman
Copy link
Contributor

jyotman commented May 19, 2017

@mcollina sure! Will submit a PR soon 👍

@eljefedelrodeodeljefe
Copy link
Author

Sorry for inactivity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants