Bug 156825 - [maintainer] [patch] sysutils/uptimed Fix math error
Summary: [maintainer] [patch] sysutils/uptimed Fix math error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Frederic Culot
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 09:30 UTC by Robert Farmer
Modified: 2011-05-05 13:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.14 KB, patch)
2011-05-05 09:30 UTC, Robert Farmer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Farmer 2011-05-05 09:30:14 UTC
Fix where percent uptime is calculated as:
(up*100)/(up-down)

Should be:
(up*100)/(up+down)

Patch from:
http://bugs.gentoo.org/show_bug.cgi?id=332753

Reported by: Akira Norimaki <sutter.cane at rx78.org>

Fix: Patch attached with submission follows:
Comment 1 Frederic Culot freebsd_committer freebsd_triage 2011-05-05 13:19:03 UTC
Responsible Changed
From-To: freebsd-ports-bugs->culot

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-05-05 13:33:12 UTC
culot       2011-05-05 12:32:59 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/uptimed     Makefile 
  Added files:
    sysutils/uptimed/files patch-src__uprecords.c 
  Log:
  - Fix error in uptime calculation
  
  PR:             ports/156825
  Submitted by:   Rob Farmer <rfarmer@predatorlabs.net> (maintainer)
  
  Revision  Changes    Path
  1.19      +1 -0      ports/sysutils/uptimed/Makefile
  1.1       +12 -0     ports/sysutils/uptimed/files/patch-src__uprecords.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Frederic Culot freebsd_committer freebsd_triage 2011-05-05 13:33:31 UTC
State Changed
From-To: open->closed

Committed. Thanks!