Rename statistics to statistic
This commit is contained in:
@@ -3,12 +3,12 @@ package top.fatweb.api.service.system
|
||||
import top.fatweb.api.vo.system.*
|
||||
|
||||
/**
|
||||
* Statistics service interface
|
||||
* Statistic service interface
|
||||
*
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
interface IStatisticsService {
|
||||
interface IStatisticService {
|
||||
/**
|
||||
* Get software information
|
||||
*
|
||||
@@ -4,7 +4,7 @@ import org.springframework.stereotype.Service
|
||||
import oshi.SystemInfo
|
||||
import oshi.hardware.CentralProcessor
|
||||
import top.fatweb.api.properties.ServerProperties
|
||||
import top.fatweb.api.service.system.IStatisticsService
|
||||
import top.fatweb.api.service.system.IStatisticService
|
||||
import top.fatweb.api.util.ByteUtil
|
||||
import top.fatweb.api.vo.system.*
|
||||
import java.time.LocalDateTime
|
||||
@@ -13,13 +13,13 @@ import java.util.*
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
/**
|
||||
* Statistics service implement
|
||||
* Statistic service implement
|
||||
*
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Service
|
||||
class StatisticsServiceImpl : IStatisticsService {
|
||||
class StatisticServiceImpl : IStatisticService {
|
||||
private val systemProperties: Properties = System.getProperties()
|
||||
private val systemInfo: SystemInfo = SystemInfo()
|
||||
private val runtime: Runtime = Runtime.getRuntime()
|
||||
Reference in New Issue
Block a user