OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   29-Sep-2007 19:07:27
  Branch: HEAD                             Handle: 2007092918072600

  Modified files:
    openpkg-src/sysmon      sysmon.patch

  Log:
    render the numeric stuff without leading blank and reduce reliability
    floating point number resolution

  Summary:
    Revision    Changes     Path
    1.5         +36 -3      openpkg-src/sysmon/sysmon.patch
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/sysmon/sysmon.patch
  ============================================================================
  $ cvs diff -u -r1.4 -r1.5 sysmon.patch
  --- openpkg-src/sysmon/sysmon.patch   29 Sep 2007 15:07:20 -0000      1.4
  +++ openpkg-src/sysmon/sysmon.patch   29 Sep 2007 17:07:26 -0000      1.5
  @@ -1,6 +1,6 @@
   Index: autoconf/Makefile.in
   --- autoconf/Makefile.in.orig        2003-11-06 04:41:31 +0100
  -+++ autoconf/Makefile.in     2007-09-29 17:02:52 +0200
  ++++ autoconf/Makefile.in     2007-09-29 19:05:30 +0200
   @@ -11,7 +11,7 @@
    CC              = @CC@
    LEX         = @LEX@
  @@ -12,7 +12,7 @@
    
   Index: configure
   --- configure.orig   2005-09-21 03:23:51 +0200
  -+++ configure        2007-09-29 17:02:52 +0200
  ++++ configure        2007-09-29 19:05:30 +0200
   @@ -1390,14 +1390,6 @@
    fi;
    
  @@ -45,7 +45,7 @@
    echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
   Index: src/config.h
   --- src/config.h.orig        2005-10-12 05:30:05 +0200
  -+++ src/config.h     2007-09-29 17:02:52 +0200
  ++++ src/config.h     2007-09-29 19:05:30 +0200
   @@ -13,7 +13,7 @@
    #include <string.h>
    #include <pwd.h>
  @@ -67,3 +67,36 @@
    #endif /* NICEINTERFACE */
    
    #ifdef HAVE_NET_SNMP_VERSION_H
  +Index: src/page.c
  +--- src/page.c.orig  2003-12-16 18:33:44 +0100
  ++++ src/page.c       2007-09-29 19:05:38 +0200
  +@@ -102,17 +102,17 @@
  +                                     memcpy(out,tmp,1024);
  +                                     break;
  +                             case 'c':
  +-                                    snprintf(tmp, 1024, "%s %ld", out, 
  ++                                    snprintf(tmp, 1024, "%s%ld", out, 
  +                                             svc->downct);
  +                                     memcpy(out,tmp,1024);
  +                                     break;
  +                             case 'C':
  +-                                    snprintf(tmp, 1024, "%s %ld", out, 
  ++                                    snprintf(tmp, 1024, "%s%ld", out, 
  +                                             svc->upct);
  +                                     memcpy(out,tmp,1024);
  +                                     break;
  +                             case 'p':
  +-                                    snprintf(tmp, 1024, "%s %d", out, 
  ++                                    snprintf(tmp, 1024, "%s%d", out, 
  +                                             svc->port);
  +                                     memcpy(out,tmp,1024);
  +                                     break;
  +@@ -122,7 +122,7 @@
  +                                     value = (100.0000-((tmp1/tmp2) * 100));
  +                                     if (value<0) value=0.000;
  +                                     if (tmp2==0) value=100.00;
  +-                                    snprintf(tmp, 1024, "%s %10.6f%%", out,
  ++                                    snprintf(tmp, 1024, "%s%.1f%%", out,
  +                                             value);
  +                                     memcpy(out,tmp,1024);
  +                                     break;
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to