Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
|
ab80b8c4e8 | ||
|
3477b944c7 | ||
|
70cf1197e5 | ||
|
1ade69b8e1 | ||
|
af093bbbfd | ||
|
1bfce5e599 |
7 changed files with 60 additions and 13 deletions
16
README.md
Normal file
16
README.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# SailTime
|
||||
|
||||
SailTime is a simple uptime program for Sailfish OS, written in C++, QML and
|
||||
Javascript. It shows the user the uptime of the device, along with the system
|
||||
load averages (1, 5 and 15 minutes) and some additional miscellaneous
|
||||
information. It also has an automatic update timer with a configurable interval
|
||||
and can save the system's all-time uptime record.
|
||||
|
||||
SailTime is available in the Jolla app store.
|
||||
|
||||
## Licence
|
||||
|
||||
SailTime is open source, licensed under the MIT Expat licence. See the LICENCE
|
||||
file for more details.
|
||||
|
||||
© Mikko Ahlroth 2013–2014
|
|
@ -103,7 +103,7 @@ ApplicationWindow
|
|||
|
||||
// Divide uptime to days, hours and minutes
|
||||
function divideUptime(seconds) {
|
||||
var days = Math.floor(seconds / 84600);
|
||||
var days = Math.floor(seconds / 86400);
|
||||
var hours = Math.floor(seconds / 3600 % 24);
|
||||
var minutes = Math.floor(seconds / 60 % 60);
|
||||
return {
|
||||
|
|
|
@ -29,7 +29,7 @@ Page {
|
|||
|
||||
Label {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: "SailTime 1.1.1"
|
||||
text: "SailTime 1.2.1"
|
||||
color: Theme.highlightColor
|
||||
font.pixelSize: Theme.fontSizeLarge
|
||||
}
|
||||
|
@ -62,6 +62,36 @@ Page {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
onClicked: Qt.openUrlExternally("https://bitbucket.org/Nicd/sailtime");
|
||||
}
|
||||
|
||||
Separator {
|
||||
x: Theme.paddingLarge
|
||||
width: parent.width - Theme.paddingLarge * 2
|
||||
horizontalAlignment: Qt.AlignCenter
|
||||
color: Theme.highlightColor
|
||||
}
|
||||
|
||||
PageHeader {
|
||||
title: "What are load averages?"
|
||||
}
|
||||
|
||||
|
||||
Label {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: "In UNIX computing, the system load is a measure of the amount of \
|
||||
computational work that a computer system performs. The load average represents the average \
|
||||
system load over a period of time. It conventionally appears in the form of three numbers \
|
||||
which represent the system load during the last one-, five-, and fifteen-minute periods."
|
||||
color: Theme.primaryColor
|
||||
font.pixelSize: Theme.fontSizeMedium
|
||||
wrapMode: Text.WordWrap
|
||||
width: parent.width - Theme.paddingLarge * 2
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Open Wikipedia description"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
onClicked: Qt.openUrlExternally("http://en.wikipedia.org/wiki/Load_average");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ Page {
|
|||
|
||||
memlegend.text = usedram[0].toFixed(2) + " " + usedram[1] + "B/"
|
||||
+ totalram[0].toFixed(2) + " " + totalram[1] + "B ("
|
||||
+ (usedram[0] / totalram[0] * 100).toFixed(2) + " %)";
|
||||
+ (meminuse / sysinfo.totalram * 100).toFixed(2) + " %)";
|
||||
|
||||
|
||||
// Swap bar
|
||||
|
@ -67,7 +67,7 @@ Page {
|
|||
|
||||
swaplegend.text = usedswap_scale[0].toFixed(2) + " " + usedswap_scale[1] + "B/"
|
||||
+ totalswap_scale[0].toFixed(2) + " " + totalswap_scale[1] + "B ("
|
||||
+ (usedswap_scale[0] / totalswap_scale[0] * 100).toFixed(2) + " %)";
|
||||
+ (swapinuse / sysinfo.totalswap * 100).toFixed(2) + " %)";
|
||||
|
||||
|
||||
// Processes amount
|
||||
|
@ -112,7 +112,7 @@ Page {
|
|||
// PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
|
||||
PullDownMenu {
|
||||
MenuItem {
|
||||
text: "About..."
|
||||
text: "About SailTime"
|
||||
onClicked: pageStack.push(aboutpage);
|
||||
}
|
||||
|
||||
|
|
|
@ -75,8 +75,9 @@ Dialog {
|
|||
spacing: Theme.paddingLarge
|
||||
|
||||
DialogHeader {
|
||||
title: "Save"
|
||||
acceptText: "Settings"
|
||||
title: "Settings"
|
||||
acceptText: "Save"
|
||||
cancelText: "Cancel"
|
||||
}
|
||||
|
||||
TextSwitch {
|
||||
|
|
|
@ -13,11 +13,11 @@ Name: harbour-sailtime
|
|||
%{!?qtc_make:%define qtc_make make}
|
||||
%{?qtc_builddir:%define _builddir %qtc_builddir}
|
||||
Summary: SailTime
|
||||
Version: 1.1.1
|
||||
Release: 2
|
||||
Version: 1.2.1
|
||||
Release: 1
|
||||
Group: Qt/Qt
|
||||
License: MIT Expat licence
|
||||
URL: http://example.org/
|
||||
URL: https://bitbucket.org/Nicd/sailtime/
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source100: harbour-sailtime.yaml
|
||||
Requires: sailfishsilica-qt5 >= 0.10.9
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
Name: harbour-sailtime
|
||||
Summary: SailTime
|
||||
Version: 1.1.1
|
||||
Release: 2
|
||||
Version: 1.2.1
|
||||
Release: 1
|
||||
Group: Qt/Qt
|
||||
URL: http://example.org/
|
||||
URL: https://bitbucket.org/Nicd/sailtime/
|
||||
License: "MIT Expat licence"
|
||||
Sources:
|
||||
- '%{name}-%{version}.tar.bz2'
|
||||
|
|
Loading…
Reference in a new issue