Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 7 and 30 day values to "Active Users" stats graph #267

Closed
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9090ed2
Fix FreeBSD Exception (null not string returned from speed/duplex)
ConstrictM Oct 11, 2020
52e1da8
Create a default active for a null status
ConstrictM Oct 11, 2020
0e29405
Switch null check to isset
ConstrictM Oct 12, 2020
833998b
[tx-robot] updated from transifex
nextcloud-bot Oct 27, 2020
2bb93ee
Added frontend fix for active user statistics
akhil1508 Oct 28, 2020
8099caf
[tx-robot] updated from transifex
nextcloud-bot Nov 8, 2020
c865545
Add OCI github action
nickvergessen Nov 10, 2020
afdb629
[tx-robot] updated from transifex
nextcloud-bot Nov 14, 2020
90c4b47
[tx-robot] updated from transifex
nextcloud-bot Nov 25, 2020
861cd9d
Properly fetch oracle database information
juliusknorr Nov 19, 2020
3f1e915
[tx-robot] updated from transifex
nextcloud-bot Dec 14, 2020
e4efb47
Fix MySQL database size calculation
nickvergessen Dec 11, 2020
1c7ccf5
[tx-robot] updated from transifex
nextcloud-bot Dec 23, 2020
a5f9e93
[tx-robot] updated from transifex
nextcloud-bot Jan 4, 2021
9c56140
Added test modifications
akhil1508 Jan 8, 2021
0303e43
Changed count assertion to assert 5 instead of 3
akhil1508 Jan 11, 2021
773a5fb
Lint
akhil1508 Jan 11, 2021
c7bf503
Update SessionStatisticsTest.php
akhil1508 Jan 11, 2021
530b24e
Update SessionStatisticsTest.php
akhil1508 Jan 11, 2021
6aa0f65
Fix for lint check
akhil1508 Jan 11, 2021
f56ab1c
Ran composer update
akhil1508 Jan 11, 2021
bd80839
Trying coding standard v0.4.0
akhil1508 Jan 11, 2021
7e0269a
Update SessionStatisticsTest.php
akhil1508 Jan 11, 2021
7f1e877
Fixes linting
akhil1508 Jan 11, 2021
72f48a1
Re-added last 30 days
akhil1508 Jan 11, 2021
1575062
cs fixed
akhil1508 Jan 11, 2021
208815c
Merge branch 'master' into frontend_and_test_fixes
akhil1508 Jan 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switch null check to isset
Signed-off-by: Matthew Wener <mwener115@gmail.com>
Signed-off-by: akhil <akhil.potukuchi@gmail.com>
  • Loading branch information
ConstrictM authored and akhil1508 committed Jan 12, 2021
commit 0e2940543fc944b46dbadfd62e712bb07f0e1069
6 changes: 3 additions & 3 deletions lib/OperatingSystems/FreeBSD.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ public function getNetworkInterfaces() {
$iface['mac'] = implode(' ', $mac[0]);
$iface['speed'] = $speed[0];

if ($status[0] !== null) {
if (isset($status[0])) {
$iface['status'] = $status[0];
} else {
$iface['status'] = 'active';
}

if ($iface['speed'] !== null) {
if (isset($iface['speed'])) {
if (strpos($iface['speed'], 'G')) {
$iface['speed'] = rtrim($iface['speed'], 'G');
$iface['speed'] = $iface['speed'] . ' Gbps';
Expand All @@ -187,7 +187,7 @@ public function getNetworkInterfaces() {
$iface['speed'] = 'unknown';
}

if ($duplex[0] !== null) {
if (isset($duplex[0])) {
$iface['duplex'] = 'Duplex: ' . $duplex[0];
} else {
$iface['duplex'] = '';
Expand Down