summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_base.c
diff options
context:
space:
mode:
authorbruno <bruno@FreeBSD.org>2006-01-12 21:56:37 +0000
committerbruno <bruno@FreeBSD.org>2006-01-12 21:56:37 +0000
commit7f7a28fe5e182a2ce5bb912689a497f2ed4dd109 (patch)
tree46d1ee321e7daa8c2f69d14fe54b9f97a4f43747 /sys/netgraph/ng_base.c
parent91d3ed73322f8d835faf2c835c37d0d9184b3b57 (diff)
downloadFreeBSD-src-7f7a28fe5e182a2ce5bb912689a497f2ed4dd109.zip
FreeBSD-src-7f7a28fe5e182a2ce5bb912689a497f2ed4dd109.tar.gz
* fix bst.status. We mark some bits, but forgot to reset all of them
before. The symptom is that the battery inform us its charge and discharge at the same time... * fix bst.rate to correctly output the (dis)charging rate. We'll use the current average over one minute command and not the at_rate command. Note that this method is not correct if the capacity_mode is set, but since we don't set it ourself, it is not a problem. The at_rate do not give the actual rate but is used to compute the estimated time for (dis)charging a battery. We should actually write an estimation of the actual rate using at_rate cmd and then perform a read to the various estimators. Approved by: njl MFC after: 2 days
Diffstat (limited to 'sys/netgraph/ng_base.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud