Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 49:45:33 |
Calls: | 583 |
Files: | 1,138 |
Messages: | 111,301 |
On Tue, 14 Jan 2025 10:13:03 -0000 (UTC), Lem Novantotto
<Lem@none.invalid> wrote in <vm5dbe$2b9fo$2@dont-email.me>:
Il Tue, 14 Jan 2025 04:44:06 -0000 (UTC), Lawrence D'Oliveiro ha
scritto:
bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /vmlinuz)) / 86400"
Well, here vmlinuz is in /boot: so /boot/vmlinuz, above.
I just looked in /boot, and discovered /boot/vmlinuz is a symlink
to the actual file. While the time is usually pretty close
to the actual kernel file, it might not be.
So it would be:
bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400"
On 2025-01-16 19:29, vallor wrote:
On Tue, 14 Jan 2025 10:13:03 -0000 (UTC), Lem Novantotto
<Lem@none.invalid> wrote in <vm5dbe$2b9fo$2@dont-email.me>:
Il Tue, 14 Jan 2025 04:44:06 -0000 (UTC), Lawrence D'Oliveiro ha
scritto:
bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /vmlinuz)) / 86400"
Well, here vmlinuz is in /boot: so /boot/vmlinuz, above.
I just looked in /boot, and discovered /boot/vmlinuz is a symlink
to the actual file.-a While the time is usually pretty close
to the actual kernel file, it might not be.
So it would be:
bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400"
Is that supposed to be a date?
Is that supposed to be a date?
On 8/27/25 5:34 AM, Carlos E.R. wrote:
On 2025-01-16 19:29, vallor wrote:
On Tue, 14 Jan 2025 10:13:03 -0000 (UTC), Lem Novantotto
<Lem@none.invalid> wrote in <vm5dbe$2b9fo$2@dont-email.me>:
Il Tue, 14 Jan 2025 04:44:06 -0000 (UTC), Lawrence D'Oliveiro ha
scritto:
bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /vmlinuz)) / 86400"
Well, here vmlinuz is in /boot: so /boot/vmlinuz, above.
I just looked in /boot, and discovered /boot/vmlinuz is a symlink
to the actual file.-a While the time is usually pretty close
to the actual kernel file, it might not be.
So it would be:
bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400" >>>
Is that supposed to be a date?
-a Sure ! Isn't it obvious ?-a :-)
-a Meanwhile, almost NO reason ever to insanely
-a covet the latest kernel. Even full previous
-a versions are still super-functional and secure.
-a MAIN reason might be support for some new bit
-a of exotic hardware.
On Wed, 27 Aug 2025 11:34:01 +0200, Carlos E.R. wrote:
Is that supposed to be a date?
From my original posting:
Above shows days elapsed since the last kernel update, to tenths of a day.
To change the precision, adjust the scale accordingly.
On 2025-08-28 05:22, Lawrence DrCOOliveiro wrote:
On Wed, 27 Aug 2025 11:34:01 +0200, Carlos E.R. wrote:
Is that supposed to be a date?
From my original posting:
Above shows days elapsed since the last kernel update, to tenths of a day. >> To change the precision, adjust the scale accordingly.
Ah.
Well, as you can see, each concoction that was posted printed a different number.
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400"
43.9
The correct one is 43.91, calculated using a spreadsheet.
On 2025-08-28 05:22, Lawrence DrCOOliveiro wrote:
On Wed, 27 Aug 2025 11:34:01 +0200, Carlos E.R. wrote:
Is that supposed to be a date?
From my original posting:
Above shows days elapsed since the last kernel update, to tenths of a
day.
To change the precision, adjust the scale accordingly.
Ah.
Well, as you can see, each concoction that was posted printed a
different number.
The correct one is 43.91, calculated using a spreadsheet.
Lawrence:
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y /vmlinuz))
/ 86400"
stat: cannot statx '/vmlinuz': No such file or directory (standard_in)
1: syntax error cer@Telcontar:~>
vallor:
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400" 43.9 cer@Telcontar:~>
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%Y
/boot/vmlinuz)) / 86400" 28.5 cer@Telcontar:~>
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -c%W / )) /
86400"
2895.4 cer@Telcontar:~>
cer@Telcontar:~> l /boot/vmlinuz lrwxrwxrwx 1 root root 34 Jul 31 00:21 /boot/vmlinuz -> vmlinuz-6.4.0-150600.23.60-default cer@Telcontar:~> cer@Telcontar:~> l /boot/vmlinuz-6.4.0-150600.23.60-default -rw-r--r-- 1
root root 14204640 Jul 15 14:48 /boot/vmlinuz-6.4.0-150600.23.60-default
The symlink was created 28.51 days ago.
On Thu, 28 Aug 2025 12:54:34 +0200, Carlos E.R. wrote:
On 2025-08-28 05:22, Lawrence DrCOOliveiro wrote:
On Wed, 27 Aug 2025 11:34:01 +0200, Carlos E.R. wrote:
Is that supposed to be a date?
From my original posting:
Above shows days elapsed since the last kernel update, to tenths of a day. >>> To change the precision, adjust the scale accordingly.
Ah.
Well, as you can see, each concoction that was posted printed a different number.
cer@Telcontar:~> bc <<<"scale = 1; ($(date +%s) - $(stat -L -c%Y /boot/vmlinuz)) / 86400"
43.9
The correct one is 43.91, calculated using a spreadsheet.
Let me just repeat this part again:
rCLTo change the precision, adjust the scale accordingly.rCY
On 2025-08-29 00:21, Lawrence DrCOOliveiro wrote:
rCLTo change the precision, adjust the scale accordingly.rCY
I was not talking of that.
On Fri, 29 Aug 2025 14:50:01 +0200, Carlos E.R. wrote:
On 2025-08-29 00:21, Lawrence DrCOOliveiro wrote:
rCLTo change the precision, adjust the scale accordingly.rCY
I was not talking of that.
I was. This is all about a piece of code I posted, remember?
On 2025-08-30 02:19, Lawrence DrCOOliveiro wrote:
On Fri, 29 Aug 2025 14:50:01 +0200, Carlos E.R. wrote:
On 2025-08-29 00:21, Lawrence DrCOOliveiro wrote:
rCLTo change the precision, adjust the scale accordingly.rCY
I was not talking of that.
I was. This is all about a piece of code I posted, remember?
Yes.