aboutsummaryrefslogtreecommitdiff
path: root/po/ru
Commit message (Expand)AuthorAge
...
* Translated using Weblate (Russian)Sergey2017-06-03
* Translated using Weblate (Russian)Andrew Zyabin2017-06-03
* Translated using Weblate (Russian)anonymous2017-06-03
* Translated using Weblate (Russian)weqqr2017-06-03
* Translated using Weblate (Russian)Alex “XShell” Schekoldin2017-06-03
* Translated using Weblate (Russian)weqqr2017-06-03
* Translated using Weblate (Russian)Pavel Sokolov2017-06-03
* Translated using Weblate (Russian)weqqr2017-06-03
* Translated using Weblate (Russian)Sergey2017-06-03
* Translated using Weblate (Russian)weqqr2017-06-03
* Translated using Weblate (Russian)Sergey2017-06-03
* Translated using Weblate (Russian)weqqr2017-06-03
* Run updatepo.shLoic Blot2017-05-21
* Translated using Weblate (Russian)weqqr2017-05-21
* Translated using Weblate (Russian)Andrey K2017-05-04
* Footsteps without view bobbing (#5645)Louis Pearson2017-04-25
* Translated using Weblate (Russian)Andrey K2017-04-06
* Translated using Weblate (Russian)Nikolay2016-12-22
* Run updatepo.shest312016-12-14
* Translated using Weblate (Russian)Andrey2016-12-14
* Translated using Weblate (Russian)Maksim Gamarnik2016-12-14
* Translated using Weblate (Russian)Stas Kies2016-12-14
* Run updatepo.shest312016-08-30
* Run updatepo.shest312016-07-12
* Translated using Weblate (Russian)Andrey K2016-05-30
* Translated using Weblate (Russian)Sergey2016-05-30
* Translated using Weblate (Russian)Vasily Pavlov2016-05-30
* Run updatepo.shest312016-05-05
* Translated using Weblate (Russian)Stas Kies2016-05-01
* Translated using Weblate (Russian)Pavel Sokolov2016-05-01
* Translated using Weblate (Russian)Anton Tsyganenko2016-05-01
* Translated using Weblate (Russian)Alex “XShell” Schekoldin2016-05-01
* Translated using Weblate (Russian)Stas Kies2016-05-01
* Update po files, minetest.conf.example and settings_translation_file.cppest312016-02-27
* Translated using Weblate (Russian)Dmitry Smirnov2016-02-27
* Translated using Weblate (Russian)Vasily Pavlov2016-02-27
* Translated using Weblate (Russian)Anton Tsyganenko2015-12-21
* Run util/updatepo.shest312015-11-08
* Russian translation: remove weird charest312015-11-08
* Translated using Weblate (Russian)Vasily Pavlov2015-11-08
* Translated using Weblate (Russian)Pavel Sokolov2015-11-08
* Translated using Weblate (Russian)Vasily Pavlov2015-11-08
* Translated using Weblate (Russian)Pavel Sokolov2015-11-08
* Translated using Weblate (Russian)Vasily Pavlov2015-11-08
* Translated using Weblate (Russian)Maksim D. Gamarnik2015-11-08
* Translated using Weblate (Russian)Pavel Sokolov2015-11-08
* Translated using Weblate (Russian)Maksim D. Gamarnik2015-11-08
* Translated using Weblate (Russian)Pavel Sokolov2015-11-08
* Run updatepo.shest312015-10-24
* Run updatepo.shest312015-09-12
an>iterator n = m_data.find(name); if (n == m_data.end()) m_data[name] = value; else n->second += value; } } void Profiler::avg(const std::string &name, float value) { MutexAutoLock lock(m_mutex); int &count = m_avgcounts[name]; assert(count != -2); count = MYMAX(count, 0) + 1; m_data[name] += value; } void Profiler::clear() { MutexAutoLock lock(m_mutex); for (auto &it : m_data) { it.second = 0; } m_avgcounts.clear(); m_start_time = porting::getTimeMs(); } float Profiler::getValue(const std::string &name) const { auto numerator = m_data.find(name); if (numerator == m_data.end()) return 0.f; auto denominator = m_avgcounts.find(name); if (denominator != m_avgcounts.end()) { if (denominator->second >= 1) return numerator->second / denominator->second; } return numerator->second; } int Profiler::getAvgCount(const std::string &name) const { auto n = m_avgcounts.find(name); if (n != m_avgcounts.end() && n->second >= 1) return n->second; return 1; } u64 Profiler::getElapsedMs() const { return porting::getTimeMs() - m_start_time; } int Profiler::print(std::ostream &o, u32 page, u32 pagecount) { GraphValues values; getPage(values, page, pagecount); char num_buf[50]; for (const auto &i : values) { o << " " << i.first << " "; if (i.second == 0) { o << std::endl; continue; } s32 space = 44 - i.first.size(); for (s32 j = 0; j < space; j++) { if ((j & 1) && j < space - 1) o << "."; else o << " "; } porting::mt_snprintf(num_buf, sizeof(num_buf), "% 4ix % 3g", getAvgCount(i.first), i.second); o << num_buf << std::endl; } return values.size(); } void Profiler::getPage(GraphValues &o, u32 page, u32 pagecount) { MutexAutoLock lock(m_mutex); u32 minindex, maxindex; paging(m_data.size(), page, pagecount, minindex, maxindex); for (const auto &i : m_data) { if (maxindex == 0) break; maxindex--; if (minindex != 0) { minindex--; continue; } o[i.first] = i.second / getAvgCount(i.first); } }