0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
termux-packages/packages/pika/src-pika_admin.cc.patch
2022-11-19 16:38:51 +00:00

30 lines
1.4 KiB
Diff

--- a/src/pika_admin.cc
+++ b/src/pika_admin.cc
@@ -847,22 +847,22 @@
getrusage(RUSAGE_CHILDREN, &c_ru);
std::stringstream tmp_stream;
tmp_stream << "# CPU\r\n";
- tmp_stream << "used_cpu_sys:" << setiosflags(std::ios::fixed)
+ tmp_stream << "used_cpu_sys:" << std::setiosflags(std::ios::fixed)
<< std::setprecision(2)
<< (float)self_ru.ru_stime.tv_sec +
(float)self_ru.ru_stime.tv_usec / 1000000
<< "\r\n";
- tmp_stream << "used_cpu_user:" << setiosflags(std::ios::fixed)
+ tmp_stream << "used_cpu_user:" << std::setiosflags(std::ios::fixed)
<< std::setprecision(2)
<< (float)self_ru.ru_utime.tv_sec +
(float)self_ru.ru_utime.tv_usec / 1000000
<< "\r\n";
- tmp_stream << "used_cpu_sys_children:" << setiosflags(std::ios::fixed)
+ tmp_stream << "used_cpu_sys_children:" << std::setiosflags(std::ios::fixed)
<< std::setprecision(2)
<< (float)c_ru.ru_stime.tv_sec +
(float)c_ru.ru_stime.tv_usec / 1000000
<< "\r\n";
- tmp_stream << "used_cpu_user_children:" << setiosflags(std::ios::fixed)
+ tmp_stream << "used_cpu_user_children:" << std::setiosflags(std::ios::fixed)
<< std::setprecision(2)
<< (float)c_ru.ru_utime.tv_sec +
(float)c_ru.ru_utime.tv_usec / 1000000