GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: simplify uptime and ppid return values · nodejs/node@28a1cc1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_process.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_process.cc‎

Copy file name to clipboardExpand all lines: src/node_process.cc
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ using v8::Integer;
5454
using v8::Isolate;
5555
using v8::Local;
5656
using v8::Name;
57-
using v8::Number;
5857
using v8::PropertyCallbackInfo;
5958
using v8::String;
6059
using v8::Uint32;
@@ -268,7 +267,7 @@ void Uptime(const FunctionCallbackInfo<Value>& args) {
268267
uv_update_time(env->event_loop());
269268
uptime = uv_now(env->event_loop()) - prog_start_time;
270269

271-
args.GetReturnValue().Set(Number::New(env->isolate(), uptime / 1000));
270+
args.GetReturnValue().Set(uptime / 1000);
272271
}
273272

274273

@@ -793,7 +792,7 @@ void EnvEnumerator(const PropertyCallbackInfo<Array>& info) {
793792

794793
void GetParentProcessId(Local<Name> property,
795794
const PropertyCallbackInfo<Value>& info) {
796-
info.GetReturnValue().Set(Integer::New(info.GetIsolate(), uv_os_getppid()));
795+
info.GetReturnValue().Set(uv_os_getppid());
797796
}
798797

799798
void GetActiveRequests(const FunctionCallbackInfo<Value>& args) {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.