Strip unnecessary whitespaces
This commit is contained in:
parent
4d6c6760b3
commit
243487903a
@ -51,7 +51,7 @@ float cpu_percentage( unsigned int cpu_usage_delay )
|
||||
unsigned long long diff_nice = next_nice - current_nice;
|
||||
unsigned long long diff_idle = next_idle - current_idle;
|
||||
|
||||
return static_cast<float>( diff_user + diff_system + diff_nice ) /
|
||||
static_cast<float>( diff_user + diff_system + diff_nice + diff_idle ) *
|
||||
return static_cast<float>( diff_user + diff_system + diff_nice ) /
|
||||
static_cast<float>( diff_user + diff_system + diff_nice + diff_idle ) *
|
||||
100.0;
|
||||
}
|
||||
|
@ -1,19 +0,0 @@
|
||||
About OpenBSD Port
|
||||
==================
|
||||
|
||||
I've decided not to do OpenBSD port. Some preparations has been made both
|
||||
by myself and (mainly) by Justin Crawford, so finish it shouldn't be difficult.
|
||||
Personally, after installing OpenBSD and trying to finish the port I've
|
||||
discovered that g++ supplied by OpenBSD (version 5.7) doesn't support c++11.
|
||||
This means we lose the ability to use to_string() and stoi() functions. I could
|
||||
write replacements for them, or try to get c++11 working on OpenBSD. But I
|
||||
decided not to. At least for the moment.
|
||||
|
||||
I don't know OpenBSD, it's unfamiliar ground for me. And while FreeBSD was easy
|
||||
to get into, I have found OpenBSD a little bit more difficult.
|
||||
|
||||
So, no OpenBSD port for now. If you are OpenBSD user and know a little bit c++
|
||||
finishing the port should be easy (once you get C++11 working).
|
||||
|
||||
l0ner
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "error.h"
|
||||
#include "cpu.h"
|
||||
|
||||
uint8_t get_cpu_count()
|
||||
uint8_t get_cpu_count()
|
||||
{
|
||||
int cpu_count = 1; // default to 1
|
||||
int mib[2] = { CTL_HW, HW_NCPU };
|
||||
|
@ -73,4 +73,3 @@ std::string load_string( bool use_colors = false )
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ std::string mem_string( bool use_colors = false )
|
||||
oss << mem_lut[( 100 * used_mem ) / total_mem];
|
||||
}
|
||||
|
||||
oss << convert_unit( used_mem, MEGABYTES )
|
||||
oss << convert_unit( used_mem, MEGABYTES )
|
||||
<< '/' << convert_unit( total_mem, MEGABYTES ) << "MB";
|
||||
|
||||
if( use_colors )
|
||||
@ -106,4 +106,3 @@ std::string mem_string( bool use_colors = false )
|
||||
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user