Rename statistics to statistic

This commit is contained in:
2023-12-14 15:31:23 +08:00
parent 1c4d28b916
commit 1743b3d3d6
3 changed files with 15 additions and 15 deletions

View File

@@ -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
*

View File

@@ -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()