I have a Perl daemon running. It polls a set of rPi input pins, and checks for and replies to, incoming web URL requests. (The web requests are actually txt msgs via Plivo.) This app will run for months at a time. One of the requests returns me a txt with system info, including program and system uptime.
When I request the system info soon after a cold boot, the system uptime will reasonably be some 15 secs earlier than the program uptime. But after about a week, the program uptime will be larger than the system uptime, by about 15 mins! I have not spent effort characterizing this phenomena, but I have observed it several times now.
It's running on an rPi4 running "noobs", aka Linux. I'm using cpan Unix::Uptime->uptime() to get the system uptime, and am using (time - ^T) to get the program uptime.
Thoughts anyone?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.