xiaoxiang781216 commented on code in PR #8991:
URL: https://github.com/apache/nuttx/pull/8991#discussion_r1164352544


##########
fs/procfs/fs_procfsproc.c:
##########
@@ -854,9 +854,24 @@ static ssize_t proc_critmon(FAR struct proc_file_s 
*procfile,
 
   /* Generate output for maximum time thread running */
 
-  linesize = procfs_snprintf(procfile->line, STATUS_LINELEN, "%lu.%09lu\n",
-                             (unsigned long)maxtime.tv_sec,
-                             (unsigned long)maxtime.tv_nsec);
+  linesize = procfs_snprintf(procfile->line, STATUS_LINELEN, "%lu.%09lu,",
+                             (unsigned long)ts.tv_sec,
+                             (unsigned long)ts.tv_nsec);
+  copysize = procfs_memcpy(procfile->line, linesize, buffer, remaining,
+                           &offset);
+
+  totalsize += copysize;
+  buffer    += copysize;
+  remaining -= copysize;
+
+  /* Show the total running time of the task */
+
+  up_perf_convert(tcb->run_time, &ts);
+
+  linesize = procfs_snprintf(procfile->line, STATUS_LINELEN,

Review Comment:
   merge to line 860



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to