mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
imageinfo_ni: formatting code
Origin commit data
------------------
Commit: 9a7054e6ac
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-11-26 (Fri, 26 Nov 2021)
Origin message was:
------------------
- imageinfo_ni: formatting code
This commit is contained in:
@@ -537,7 +537,7 @@ int CImageInfoNI::CPU_Percent(_stat *cpu)
|
||||
|
||||
long unsigned int sys_diff = sys_new - sys_old;
|
||||
long unsigned int total_diff = total_new - total_old;
|
||||
if(!total_diff)
|
||||
if (!total_diff)
|
||||
total_diff = 1;
|
||||
long unsigned int percent = ((float) sys_diff / (float) total_diff) * 100;
|
||||
|
||||
|
Reference in New Issue
Block a user