ilhamdev commited on
Commit
c8d781c
·
verified ·
1 Parent(s): 8227301

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -3
index.js CHANGED
@@ -416,14 +416,14 @@ app.all('/', async (req, res) => {
416
 
417
  const host = 'https://' + req.get('host');
418
  const end = Date.now(); // Selesai menghitung waktu
419
- const latency = (end - start).toFixed(4) + ' ms'; // Menghitung latency
420
 
421
  res.json({
422
  creator: `@${process.env['SPACE_AUTHOR_NAME'] || 'ALOK FF'}`,
423
  message: 'Hello World!',
424
  uptime: new Date(process.uptime() * 1000).toUTCString().split(' ')[4],
425
- status,
426
- latency, // Menambahkan latency ke JSON
427
  "list": [
428
  {
429
  "title": "BING AI",
 
416
 
417
  const host = 'https://' + req.get('host');
418
  const end = Date.now(); // Selesai menghitung waktu
419
+ const latency = (end - start) + ' ms'; // Menghitung latency
420
 
421
  res.json({
422
  creator: `@${process.env['SPACE_AUTHOR_NAME'] || 'ALOK FF'}`,
423
  message: 'Hello World!',
424
  uptime: new Date(process.uptime() * 1000).toUTCString().split(' ')[4],
425
+ latency,
426
+ status, // Menambahkan latency ke JSON
427
  "list": [
428
  {
429
  "title": "BING AI",