From 478c3bccfd4be976294d0610e2bff93d37b6ed42 Mon Sep 17 00:00:00 2001
From: kushalsingh007 <kushal.spiderman.singh@gmail.com>
Date: Fri, 9 Jan 2015 22:10:11 +0530
Subject: [PATCH] Display-network-speed-in-MiB-gsoc15
---
src/apps/activitymonitor/DataSource.cpp | 3 ++-
src/apps/activitymonitor/Jamfile | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/apps/activitymonitor/DataSource.cpp b/src/apps/activitymonitor/DataSource.cpp
index c493593..3adadeb 100644
a
|
b
|
|
12 | 12 | #include <Catalog.h> |
13 | 13 | #include <OS.h> |
14 | 14 | #include <String.h> |
| 15 | #include <StringForRate.h> |
15 | 16 | |
16 | 17 | #include "SystemInfo.h" |
17 | 18 | |
… |
… |
void
|
1225 | 1226 | NetworkUsageDataSource::Print(BString& text, int64 value) const |
1226 | 1227 | { |
1227 | 1228 | char buffer[32]; |
1228 | | snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f KiB/s"), value / 1024.0); |
| 1229 | string_for_rate(value, buffer, sizeof(buffer)); |
1229 | 1230 | |
1230 | 1231 | text = buffer; |
1231 | 1232 | } |
diff --git a/src/apps/activitymonitor/Jamfile b/src/apps/activitymonitor/Jamfile
index d36d3f5..6a3a7d0 100644
a
|
b
|
|
1 | 1 | SubDir HAIKU_TOP src apps activitymonitor ; |
2 | 2 | |
3 | | UsePrivateHeaders interface system ; |
| 3 | UsePrivateHeaders interface shared system ; |
4 | 4 | |
5 | 5 | Application ActivityMonitor : |
6 | 6 | ActivityMonitor.cpp |