Talk:Linux CPU utilization: Difference between revisions

→‎OS specific task: use this constant string for non-Linux systems.
No edit summary
(→‎OS specific task: use this constant string for non-Linux systems.)
 
(One intermediate revision by one other user not shown)
Line 1:
== someone to review this task ==
 
I think this task is pretty much ready to go... but as its the first task I've added to Rosetta Code, I'd like to get someone to review it first :)
--[[User:Paul|Paul]] ([[User talk:Paul|talk]]) 09:49, 27 May 2015 (UTC)
 
 
== OS specific task ==
Line 21 ⟶ 24:
 
::: It's easy for you to say (''using a surrogate file''), but I don't have access to a Linux system.   But if somebody would include such a (sample) file here, it would be a snap to code this Rosetta Code task in REXX.   -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 00:10, 21 July 2016 (UTC)
 
:::: I was thinking something like that, after my undo of the (silly) Applesoft BASIC entry. Languages which cannot run on Linux should perhaps instead parse the string "cpu 259246 7001 60190 34250993 137517 772 0" as if they'd read it from the first line of /proc/stat, and display average CPU usage since boot, once, rather than using the delta to continuously show a more up-to-date figure. I've done just that with the Phix entry, leaving the Linux-only lines commented out, which as a bonus lets me claim that entry is now js-compatible. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 17:39, 21 July 2022 (UTC)
 
== Exclude guest and guest_nice ==
7,805

edits