system-dashboard-frontend 1.36.1 → 1.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-dashboard-frontend",
3
- "version": "1.36.1",
3
+ "version": "1.37.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -20,6 +20,7 @@
20
20
  }
21
21
 
22
22
  /* https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
23
+ * https://www.man7.org/linux/man-pages/man8/systemd-journal-gatewayd.service.8.html
23
24
  */
24
25
 
25
26
  let follow;
@@ -45,9 +46,9 @@
45
46
  headers: {
46
47
  ...headers,
47
48
  Accept: "application/json",
48
- Range: `entries=${[cursor, offset, number]
49
- .map(v => v || "")
50
- .join(":")}`
49
+ Range: cursor
50
+ ? `entries=${cursor}:${offset}:${number}`
51
+ : `realtime=${Math.floor(Date.now() / 1000)}:${offset}:${number}`
51
52
  }
52
53
  }
53
54
  );
@@ -67,7 +68,7 @@
67
68
  return;
68
69
  }
69
70
 
70
- for (let i = 0; i < 5; i++) {
71
+ for (let i = 0; i < 3; i++) {
71
72
  try {
72
73
  if (entries.length === 0) {
73
74
  break;