Ticket #11053: 0001-Display-network-speed-in-MiB-gsoc15.patch

File 0001-Display-network-speed-in-MiB-gsoc15.patch, 1.4 KB (added by kushalsingh007, 10 years ago)

Style changes made as per Haiku Guidlines

  • src/apps/activitymonitor/DataSource.cpp

    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  
    1212#include <Catalog.h>
    1313#include <OS.h>
    1414#include <String.h>
     15#include <StringForRate.h>
    1516
    1617#include "SystemInfo.h"
    1718
    void  
    12251226NetworkUsageDataSource::Print(BString& text, int64 value) const
    12261227{
    12271228    char buffer[32];
    1228     snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f KiB/s"), value / 1024.0);
     1229    string_for_rate(value, buffer, sizeof(buffer));
    12291230
    12301231    text = buffer;
    12311232}
  • src/apps/activitymonitor/Jamfile

    diff --git a/src/apps/activitymonitor/Jamfile b/src/apps/activitymonitor/Jamfile
    index d36d3f5..6a3a7d0 100644
    a b  
    11SubDir HAIKU_TOP src apps activitymonitor ;
    22
    3 UsePrivateHeaders interface system ;
     3UsePrivateHeaders interface shared system ;
    44
    55Application ActivityMonitor :
    66    ActivityMonitor.cpp