README updated; fix in network module

This commit is contained in:
Serhiy Mytrovtsiy
2019-06-26 14:10:52 +02:00
parent 2326e5573c
commit cd5f64a12c
2 changed files with 23 additions and 18 deletions

View File

@@ -3,16 +3,15 @@ Simple macOS system monitor in your menu bar
[<img src="https://serhiy.s3.eu-central-1.amazonaws.com/Github_repo/stats/widgets%3Fv1.1.0.1.png">](https://github.com/exelban/stats/releases)
## Why
## Features
Stats is a application which allows you to monitor your macOS system.
Also its:
- free
- easy to use
- no advertisement
- no tracking
- few types of widgets
- black theme compatible
- CPU Usage
- Memory Usage
- Disk utilization
- Battery level
- Network usage
- Black theme compatible
## Installation
You can download latest version [here](https://github.com/exelban/stats/releases).
@@ -23,8 +22,9 @@ You can download latest version [here](https://github.com/exelban/stats/releases
| --- | --- | --- |
| **CPU** | Percentage / Chart / Chart with value | Shows CPU usage |
| **Memory** | Percentage / Chart / Chart with value | Shows RAM usage |
| **Disk** | Percentage | Shows disk filling |
| **Disk** | Percentage | Shows disk utilization |
| **Battery** | Graphic / Percentage | Shows battery level and charging status |
| **Newtork** | Dots / Upload/Download traffic | Shows network activity |
## Compatibility
| macOS | Compatible |
@@ -33,7 +33,7 @@ You can download latest version [here](https://github.com/exelban/stats/releases
| 10.14.1 *(Mojave)* | **true** |
## Todo
- [ ] Battery percentage
- [X] Battery percentage
- [ ] Create new logo
- [ ] Window with preferences
- [ ] Save last modules values
@@ -41,7 +41,7 @@ You can download latest version [here](https://github.com/exelban/stats/releases
- [ ] temperature module
- [X] battery module
- [X] move to module system (CPU, RAM, DISK)
- [ ] network module
- [X] network module
- [X] save settings
- [ ] OTA updates
- [X] charts
@@ -49,6 +49,11 @@ You can download latest version [here](https://github.com/exelban/stats/releases
## What's new
### v1.2.0
- added network module
- added Check for updates window
- fixed few bugs
### v1.1.0
- added battery module
- added chart widget for CPU and Memory
@@ -58,4 +63,4 @@ You can download latest version [here](https://github.com/exelban/stats/releases
- first release
## License
[GNU General Public License](https://github.com/exelban/stats/blob/master/LICENSE)
[MIT License](https://github.com/exelban/stats/blob/master/LICENSE)

View File

@@ -40,7 +40,7 @@ class NetworkDotsView: NSView, Widget {
var uploadCircle = NSBezierPath()
uploadCircle = NSBezierPath(ovalIn: CGRect(x: MODULE_MARGIN, y: height + (MODULE_MARGIN * 2) + 1, width: height, height: height))
if self.upload != 0 {
if self.upload >= 1_024 {
NSColor.red.setFill()
} else {
NSColor.labelColor.setFill()
@@ -49,7 +49,7 @@ class NetworkDotsView: NSView, Widget {
var downloadCircle = NSBezierPath()
downloadCircle = NSBezierPath(ovalIn: CGRect(x: MODULE_MARGIN, y: MODULE_MARGIN, width: height, height: height))
if self.download != 0 {
if self.download >= 1_024 {
NSColor(red: (26/255.0), green: (126/255.0), blue: (252/255.0), alpha: 0.8).setFill()
} else {
NSColor.labelColor.setFill()
@@ -170,7 +170,7 @@ class NetworkArrowsView: NSView, Widget {
downloadArrow.addArrow(start: downloadStart, end: downloadEnd, pointerLineLength: pointerLineLength, arrowAngle: arrowAngle)
if self.download != 0 {
if self.download >= 1_024 {
NSColor(red: (26/255.0), green: (126/255.0), blue: (252/255.0), alpha: 0.8).set()
} else {
NSColor.labelColor.set()
@@ -246,7 +246,7 @@ class NetworkDotsTextView: NSView, Widget {
var uploadCircle = NSBezierPath()
uploadCircle = NSBezierPath(ovalIn: CGRect(x: MODULE_MARGIN, y: height + (MODULE_MARGIN * 2) + 1, width: height, height: height))
if self.upload != 0 {
if self.upload >= 1_024 {
NSColor.red.setFill()
} else {
NSColor.labelColor.setFill()
@@ -351,7 +351,7 @@ class NetworkArrowsTextView: NSView, Widget {
downloadArrow.addArrow(start: downloadStart, end: downloadEnd, pointerLineLength: pointerLineLength, arrowAngle: arrowAngle)
if self.download != 0 {
if self.download >= 1_024 {
NSColor(red: (26/255.0), green: (126/255.0), blue: (252/255.0), alpha: 0.8).set()
} else {
NSColor.labelColor.set()
@@ -366,7 +366,7 @@ class NetworkArrowsTextView: NSView, Widget {
uploadArrow.addArrow(start: uploadStart, end: uploadEnd, pointerLineLength: pointerLineLength, arrowAngle: arrowAngle)
if self.upload != 0 {
if self.upload >= 1_024 {
NSColor.red.set()
} else {
NSColor.labelColor.set()