From 832288fd569449c3c77e9df1d2aa76b3800a89c6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Oct 2018 19:25:59 +0900 Subject: [PATCH] Better id --- src/client/app/common/views/widgets/server.cpu-memory.vue | 2 +- src/client/app/desktop/views/pages/admin/admin.cpu-memory.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/app/common/views/widgets/server.cpu-memory.vue b/src/client/app/common/views/widgets/server.cpu-memory.vue index 119a77af8..4a0341ddc 100644 --- a/src/client/app/common/views/widgets/server.cpu-memory.vue +++ b/src/client/app/common/views/widgets/server.cpu-memory.vue @@ -92,7 +92,7 @@ export default Vue.extend({ this.connection.on('stats', this.onStats); this.connection.on('statsLog', this.onStatsLog); this.connection.send('requestLog', { - id: Math.random().toString() + id: Math.random().toString().substr(2, 8) }); }, beforeDestroy() { diff --git a/src/client/app/desktop/views/pages/admin/admin.cpu-memory.vue b/src/client/app/desktop/views/pages/admin/admin.cpu-memory.vue index 0f486df2d..5d03b30ef 100644 --- a/src/client/app/desktop/views/pages/admin/admin.cpu-memory.vue +++ b/src/client/app/desktop/views/pages/admin/admin.cpu-memory.vue @@ -78,7 +78,7 @@ export default Vue.extend({ this.connection.on('stats', this.onStats); this.connection.on('statsLog', this.onStatsLog); this.connection.send('requestLog', { - id: Math.random().toString(), + id: Math.random().toString().substr(2, 8), length: 200 }); },